Char Predicate
open class CharPredicate(val predicate: (Char) -> Boolean, name: String? = null) : AbstractLexeme<Token.Generic>
A Lexeme that matches a single character satisfying a predicate. Matches produced by this Lexeme always have a length of 1.
Properties
Link copied to clipboard
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).