A mutable version of Result.Failure with extra data.
A mutable version of Result.Failure with extra data.
the original parser that was attempted and failed. Used to repeat the parse with tracing when generating error messages
The original index that originalParser was attemped at
The index at which parser traces are required; -1 if empty
If a traceIndex
is provided, this will contain any
parsers within this Failure that failed at exactly
that index, which will be used for error reporting.
If you are writing your own custom Parser and it
contains sub-parsers, you should generally aggregate
any the traceParsers of any of their results.
A mutable version of Result.Success with extra data.
A mutable version of Result.Success with extra data.
If a traceIndex
is provided, this will contain any
parsers within this Success that failed at exactly
that index, which will be used for error reporting.
If you are writing your own custom Parser and it
contains sub-parsers, you should generally aggregate
any the traceParsers of any of their results.
Whether or not this parser crossed a cut and can not longer backtrack