Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

2 participants