WalkerParsingResult

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

The result of a WalkerParser parsing operation.

Parameters

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

source

the whole input the walker was given

Type Parameters

T

the type of result, produced by the parser

See also

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard

The remaining content of source after the parsing operation.

Link copied to clipboard
Link copied to clipboard

The part of source that was parsed

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