Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate lexers for programs in various languages from the DFA #32

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

timtadh
Copy link
Owner

@timtadh timtadh commented Feb 4, 2019

This is an experimental PR which contains support for generating lexers for programming languages directly from a DFA specification. It does not use the same API as the rest of lexmachine.

For a first proof of concept I wrote a super simple generator for Python. The code it produces is probably not optimal for python.

This branch may or may not every be merged. Chime in if you have a good use case or language you want support for (including Go).

The MVP is mostly just for demo purposes of showing how to generate a
python state machine for lexing from a DFA.

Signed-off-by: Tim Henderson <tim.tadh@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant