Functionsยง
- is
- For parser p, return the
!!p
peek parsing expression. - is_not
- For parser p, return the
!p
peek parsing expression. - label_
with_ recovery - Label with recovery function. In addition to upgrading errors, the error is logged and recovery function will be run as an attempt to synchronize parser state.
- label_
without_ recovery - Label without recovery function. Upgrade Err::Error to Err:Failure and override its context information.
- mech_
code - mech_
code_ alt - null
- Convert output of any parser into ParserNode::Null.
Useful for working with
alt
combinator and error recovery functions. - parse
- parse_
grammar - parse_
mech - print_
err_ report - Print formatted error message.
- program
- range
- For parser p, run p and also output the range that p has matched upon success.
- skip_
empty_ mech_ directive - skip_
nil - skip_
spaces - skip_
till_ eol - tag
- Return a terminal parsing expression that consumes
tag
from input.