TokenParserExtension<R> extension

on

Methods

token() Parser<Token<R>>

Available on Parser<R>, provided by the TokenParserExtension extension

Returns a parser that returns a Token. The token carries the parsed value of the receiver Token.value, as well as the consumed input Token.input from Token.start to Token.stop of the input being parsed.