Used to capture the text parsed by this as a String
Used to capture the text parsed by this as a String
Parses this, optionally
Parses this, optionally
applies the supplied predicate to the current parser succeeding on true failing on false
applies the supplied predicate to the current parser succeeding on true failing on false
Uses the result of this parser to create another parser that will be used for the next parse
Uses the result of this parser to create another parser that will be used for the next parse
Wraps this in a Logged.
Wraps this in a Logged. This prints out information where a parser was tried and its result, which is useful for debugging
Transforms the result of this Parser with the given function
Transforms the result of this Parser with the given function
Makes this parser opaque, i.e.
Makes this parser opaque, i.e. hides it and its inner parsers from the stack trace, providing the specified message instead.
Repeats this parser 0 or more times
Repeats this parser 0 or more times
Wraps this in a Not for negative lookaheak
Wraps this in a Not for negative lookaheak
alias for filter
alias for filter
Parses using this or the parser p
Parses using this or the parser p
Parses using this followed by the parser p
Parses using this followed by the parser p
Performs a cut if this parses successfully.
Performs a cut if this parses successfully.
Parses using this followed by the parser p
, performing a Cut if
this parses successfully.
Parses using this followed by the parser p
, performing a Cut if
this parses successfully. That means that if p
fails to parse, the
parse will fail immediately and not backtrack past this success.
This lets you greatly narrow the error position by avoiding unwanted backtracking.
Custom version of
ParserApi
, that behaves the same as the default but injects whitespace in between every pair of tokens. Also provides replacement methodsrepX
and~~
if you wish to call the original un-modified versions of these operators.