invoke

open operator fun Char.invoke(block: ClosureFunction<LexerContext<T>, Char, Unit> = {})

Configures the lexer to execute a specific block of code when this character matches.

open operator fun String.invoke(block: ClosureFunction<LexerContext<T>, Char, Unit> = {})

Configures the lexer to execute a specific block of code when this sequence of characters matches.