-
Notifications
You must be signed in to change notification settings - Fork 96
Serialization of parsed model leads to invalid code #1853
Comments
eclipse-xtext/xtext#2580 |
Thanks a lot for your reply. I tested it and it solves the problem I described above. However I ran into an issue with a comma seperated list. If I for example change the grammar for resetEvents to a comma seperated list:
And I execute the test
|
If metamodel does not matter can you move each clause to extra rule |
What do you mean exactly? Extracting |
yes |
Thanks a lot. I tested it with the example I provided and changed the grammar:
While that works, I can't change the metamodel in my real project. Therfore we decided to make the comma optional and move to lists without commas in the future. In my example that means changing the grammar to the following:
|
I have one problem left: |
no, none besides make them explicit |
I don't see something here that's different from eclipse-xtext/xtext#2580. Closing |
Given the following grammar:
If i parse and the serialize tho following code:
The serialization of the parsed model leads to invalid code:
Ass seen above the first to statements are duplicated with an empty statement.
Attached below is an example project to reproduce the issue.
See teste
org.eclipse.xtext.example.fowlerdsl.tests.StatemachineParsingTest
IssueDuplicate.zip
The text was updated successfully, but these errors were encountered: