Char Sequence Predicate
A Lexeme that matches any character sequence satisfying predicate.
The predicate is evaluated on a substring of the input starting at the current position. The predicate should return a positive number indicating the number of characters matched, or 0 (or a negative value) to indicate no match.
Generally, as the CharSequence passed to the predicate is a substring of the input starting at the current position and extending to the end of the input, you may want to use kotlin.CharSequence.startsWith to test against specific conditions at the current context position when building your predicate.
Properties
A default Token factory that creates new instances of T for matches of this Lexeme, given the CharSequence which captures the Token (equal to Token.value).
A function that returns the number of characters from input to match