WalkerParsingResult

data class WalkerParsingResult<T>(val value: T, val endIndex: Int, val tokens: TokenMatchesSequence, val remainder: CharSequence)

The result of a WalkerParser parsing operation.

Parameters

T

the type of result, produced by the parser

value

the result value, produced by the parser

endIndex

the index, relative to the input string, at which the parsing operation ended

tokens

the sequence of tokens that were matched during the tokenization by the walker

remainder

the remaining content of the input string after the parsing operation

See also

Constructors

Link copied to clipboard
constructor(value: T, endIndex: Int, tokens: TokenMatchesSequence, remainder: CharSequence)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tokens: TokenMatchesSequence
Link copied to clipboard
val value: T