Skip to content

Escape reserved keywords in C++ and Python codegen#382

Open
4390c336 wants to merge 1 commit intorenatahodovan:masterfrom
4390c336:fix-reserved-keywords-issue
Open

Escape reserved keywords in C++ and Python codegen#382
4390c336 wants to merge 1 commit intorenatahodovan:masterfrom
4390c336:fix-reserved-keywords-issue

Conversation

@4390c336
Copy link

Rule method names that collide with language keywords now get a
trailing _, while rule names in strings and maps stay unchanged,
preventing invalid function names in the target language

fix #48

Rule method names that collide with language keywords now get a
trailing _, while rule names in strings and maps stay unchanged,
preventing invalid function names in the target language
@4390c336 4390c336 changed the title Escape reserved keywords in generated C++ and Python generators Escape reserved keywords in C++ and Python codegen Jan 30, 2026
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.

Python keywords as rule name

1 participant