Module parser

Module parser 

Source

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.