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

Bug in ANTLR grammar generation when invoking expression rules directly #64

Open
chseidl opened this issue Oct 12, 2014 · 0 comments
Open

Comments

@chseidl
Copy link
Contributor

chseidl commented Oct 12, 2014

There is a bug when referencing a meta class whose syntax rule is marked as expression rule from outside of another expression rule. In this case, the generated ANTLR syntax holds a reference to a syntax rule with the name as would be expected for a non-expression rule. However, expression rules use a different naming convention (and actually hierarchicals tructuring of rule due to the expression nature) so that the ANTLR grammar rule cannot be resolved.

The use case may actually be avalid concern, e.g., when using an aotmic expression rule within another statement (say an integer literal atomix expression also to initialize a constant's value that should not support arbitrary expressions).

Example code for above use case illustrating the example will be sent to the developers.

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

No branches or pull requests

1 participant