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
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
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.