Closed bjornkihlberg closed 2 months ago
In the peggy documentation it is stated that but this doesn't seem to work. Is the documentation out of date?
How to reproduce
npm i -D peggy
Code
const ab_parser = peggy.generate('posAssertion = "a" &"b"') ab_parser.parse("ab")
Generates the error SyntaxError: Expected end of input but "b" found.
SyntaxError: Expected end of input but "b" found.
Never mind, I just realized that the examples have the match and rest patterns to make these work.
match
rest
In the peggy documentation it is stated that
but this doesn't seem to work. Is the documentation out of date?
How to reproduce
Code
Generates the error
SyntaxError: Expected end of input but "b" found.