Readonly
initialInitial user state.
Readonly
inputThe original string input on which parsing is performed. Should not be mutated while parsing.
Readonly
isShorthand for this.result == FatalFailure
Readonly
isShorthand for this.result == HardFailure
Readonly
isShorthand for this.result == Okay
Readonly
isShorthand for this.result == SoftFailure
The result of the last parser action: OK, SoftFailure, HardFailure, FatalFailure.
The next character waiting to be parsed.
If the result is a failure, this field will indicate the reason for the failure. If the result is OK, this must be undefined.
A stack that indicates entered parsers. Should not be modified by user code.
Additional state data.
The value from the last parser action performed on this state.
Maintains progress for parsing a single input.