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.
Whether or not the parser encountered a Cut before reaching this success, which prevents backtracking.
The original index that originalParser was attemped at
the original parser that was attempted and failed.
the original parser that was attempted and failed. Used to repeat the parse with tracing when generating error messages
Snapshots this mutable result and converts it into an immutable Parsed object
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 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 Parsed.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.