This library aids in lexing languages.
[dependencies]
lex = "0.2.0"
If you are making a programming language you will likely want to use the out-of-the-box lexer provided by
lex::code::create_lexer()
. This implementation will fit most modern programming languages.
You may also implement the lex::Lexer
trait yourself or just the lex::Next
trait and use the standard lexer
implementation. For both of these cases you will need to provide your own lex::Kind
implementation.