The type of the semantic value stored in data. It can vary based on the semantics defined while parsing. It must implement Identifiable
Readonly
dataThe semantic value produced in the parsing process. If no semantics are defined, it defaults to null.
Readonly
indexReadonly
isReadonly
resultReadonly
targetReturns a string identity of the ParseResult.
The following criteria are checked to produce a unique signature and distinguish two ParseResult instances properly:
A string identity of the ParseResult.
Generates a Promise that will resolve with this ParseResult.
A new Promise wrapper for this ParseResult.
A class for parse successful results.
An object of this type gets returned on parses that matched their target until some specified index. Any semantic value attached to the parse results during parsing is also returned as the data payload of the parse result.
Inside a ParseResult, this should always hold true: result.length <= index <= target.length
See
Identifiable