Skip to content

fuad1502/jlek

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Lexer generator 🪞

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages