aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--examples/math.lua4
2 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index a34c046..04d4297 100644
--- a/README.md
+++ b/README.md
@@ -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)