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

fix: proper generated struct name for state change #268

Merged

Conversation

klondikedragon
Copy link
Contributor

The generated struct name is now correct (uses name specified on command line) instead of using the name of the rule.

Tested that the generated lexer code now properly compiles without manual modification.

The generated struct name is now correct (uses name specified on command
line) instead of using the name of the rule.
If multiple generated lexers are in the same package and if they share
the same rule names, previously duplicate function names would have been
generated.

Now, generated match function names include the given name of the
lexer.
@alecthomas
Copy link
Owner

Nice, thanks!

@alecthomas alecthomas merged commit a083c4e into alecthomas:master Sep 24, 2022
@klondikedragon klondikedragon deleted the fix/lexer-codegen-namespace branch September 24, 2022 14:57
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

2 participants