Make a Matcher that throws an error if reached.
Use with caution!
Use fail if parser can step back and try a different path.
For error recovery you can try to encode erroneous state in an output value instead.
The message or a function to construct it from the current parser state.
Make a Matcher that throws an error if reached.
Use with caution!
Use fail if parser can step back and try a different path.
For error recovery you can try to encode erroneous state in an output value instead.