Parser State
Represents an ongoing parsing computation.
Inherit this class if you need to keep your own parsing state as well.
Constructors
Functions
Propagate the last thrown parser failure. If newMsg is not null
, the failure's reason
message is replaced by the given one.
Properties
Extensions
Executes the given parser atomically. The parser either succeeds, or the entire parser fails.
Consumes the next character and fails if it is not in the given list of expected characters. If the list of expected characters is empty, the parser will match any character.
Tries the given parsers in order, returning the result of the first one to succeed. Fails with the error message of the last parser, if none of the given parsers succeed.
Tries the given parsers in order, returning the result of the first one to succeed. Fails if none of the given parsers succeed.