Note
This project is part of the "Compiler Toys" project, originally meant as a learning exercise on Compilers.
JLEK is a lexer generator similar to Lex. JLEK generates a lexer module from token specifications (identifier and regular expression pattern).
JLEK is the lexer used by JJIK parser
generator. Currently, JLEK cannot be used standalone without JJIK, since the
generated lexer module (lexer.rs) depends on a module generated by JJIK
(symbol.rs).
Warning
Currently JLEK ignores whitespace characters (space, newline, tab, carriege return) by default. Later, user should be able to specify the class of characters to treat as separators.
See the crate's documentation on how to use JLEK and the supported regular expression syntax.
The "LEK" in JLEK is similar to Lex, a well known lexer generator. I added the 'J' in front of it to match it with JJIK while also making it sound like the Indonesian word jelek which means "ugly" :)