Basic Lexemes
A collection of commonly used Lexeme implementations.
BasicLexemes provides predefined lexeme classes for matching common patterns such as individual characters, character ranges, strings, regular expressions, and whitespace.
All Lexemes in this object produce Token.Generic tokens unless otherwise specified.
Types
A Lexeme that matches 1 character, indiscriminately.
A Lexeme that matches a single specific character c. Matches produced by this Lexeme always have a length of 1.
A Lexeme that matches any one of several specified chars. Matches produced by this Lexeme always have a length of 1.
A Lexeme that matches a single character satisfying a predicate. Matches produced by this Lexeme always have a length of 1.
A Lexeme that matches any character within a specified range. Matches produced by this Lexeme always have a length of 1.
A Lexeme that matches a specific character sequence or String literal str.
A Lexeme that matches any character sequence satisfying predicate.
A Lexeme that matches input against a regular expression regex.
A Lexeme that matches a single kotlin.Char.isWhitespace character.