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

Suggestion: use "antlr4.generation.language" for internal code generation #19

Closed
eternalphane opened this issue Jan 14, 2018 · 1 comment
Labels
feature request A request for a new feature

Comments

@eternalphane
Copy link

It's possible that some rule names may conflict with generated code in target language, e.g. operator in C++, while they are valid identifier names in Java.

@mike-lischke mike-lischke added the feature request A request for a new feature label Jan 14, 2018
@mike-lischke
Copy link
Owner

The problem with that approach is that the Typescript target cannot produce the required interpreter data, hence it cannot be used for internal parser generation. We could do a fallback to any other language if Typescript is specified, but then we might be back to the original problem.

Now we could introduce another setting, just for internal generation, but that seems pretty odd, since this is something internal and hence per se not configurable by the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A request for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants