diff options
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | examples/math.lua | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -245,7 +245,7 @@ expr = add And now we can use the parser! ```lua -eind, out = pm.parse("10 + 5 * 2 + 10", lexer, expr) -- 14, 30 +out, endindex, finalindex = pm.parse("10 + 5 * 2 + 10", lexer, expr) -- 14, 30 ``` ### Missing diff --git a/examples/math.lua b/examples/math.lua index eed979b..f0f105b 100644 --- a/examples/math.lua +++ b/examples/math.lua @@ -59,5 +59,5 @@ else test = [[10 + 5 * 2 + 10]] end -local eind, out = pm.parse(test, lexer, expr) -print(eind, out) +local out, eind, find = pm.parse(test, lexer, expr) +print(out, eind, find) |
