Scanner generator ยท Python 3.13+
Name the rules.
Get the tokens.
A small Python scanner generator with no dependencies. Give it named regexes, and it yields tokens: longest match wins, and ties go to the earlier rule.
lectes is a scanner generator written in Python; you can use it to easily create
a scanner by writing Python code. Head to Usage if you want to know how.
Try it in the playground: lectes.dev lets you write a grammar and see the tokens as you type, right in your browser.