Skip to content

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.

2 participants