aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChloe Kudryavtsev <toast@toast.cafe>2021-12-29 15:30:08 -0500
committerChloe Kudryavtsev <toast@toast.cafe>2021-12-29 15:30:08 -0500
commit965fc7dab276583c79abcea0363c2fb2756acaa7 (patch)
tree829ce3eea086663c2152d438fc9ff25b116c9bc3
parentrelease 1.1-0 (diff)
update examples and readme for 1.1
-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)