Thanks to visit codestin.com
Credit goes to lib.rs

3 releases

Uses new Rust 2024

new 0.1.2 Jan 10, 2026
0.1.1 Jan 5, 2026
0.1.0 Jan 5, 2026

#1708 in Programming languages

Codestin Search App Codestin Search App Codestin Search App

135 downloads per month
Used in 2 crates (via jjik)

MIT license

39KB
933 lines

JLEK 🪞

CI

[!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.

Documentation

See the crate's documentation on how to use JLEK and the supported regular expression syntax.

Why is it called JLEK?

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" :)

No runtime deps