-
Notifications
You must be signed in to change notification settings - Fork 321
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
Generated internal parser contains java syntax error #3296
Comments
Can you try to remove the nested predicates) |
Looks like they should be replaced by first-set predicates in all three cases. Use |
I'll try out your suggestion, thanks. I wonder if this works for a more complex grammar as well though. I'll try it out on my actual grammar (see this line here: https://github.com/REGnosys/rune-dsl/blob/switch-fix/rosetta-lang/src/main/java/com/regnosys/rosetta/Rosetta.xtext#L676), and see if I need to "enhance" the example a bit to make more sense. I'll come back. |
@szarnekow This did indeed fixes the issue. I did a review of my expression parser rules, and figured I could use a first token predicate Should I close the issue, or keep it open, since the actual generation issue is not fixed? |
I'm seeing a syntax error in the generated
InternalMyDslParser.java
file:Minimal repro grammar file:
Is there any workaround for this?
The text was updated successfully, but these errors were encountered: