createLexer

fun <T> createLexer(block: Closure<LexerDSL<T>, Unit>): Lexer<T>

Creates and configures a Lexer.

Return

A configured Lexer.

Author

AdrianTodt

Parameters

T

The type of tokens the lexer generates.

block

The lexer configurator.