Community
Participate
Working Groups
Hello, to me it seems like there is an error in the "The Grammar Language example". http://www.eclipse.org/Xtext/documentation/2_0_0/020-grammar-language.php I am currently just learning to use xtext but this doesn't seem right to me and is confusing, might also just be me not understanding. Maybe you could clarify or change this. The "events" are declared as follows: events doorClosed D1CL drawOpened D2OP lightOn L1ON doorOpened D1OP panelClosed PNCL resetting doorOpened D1OP end Note the "resetting" line. But the later grammar definition just declares the following terminmals Statemachine : 'events' (events+=Event)+ 'end' ('resetEvents' (resetEvents+=[Event])+ 'end')? 'commands' (commands+=Command)+ 'end' (states+=State)+; Here "resetEvents" is declared as separate begin/end block instead of as part of 'events'. In addition to that neither resetting or resetEvents is used or mentioned again. Could you maybe clarify it, like saying it is not used or add an example how to handle it? Thanks for reading.
you are right, there's an inconsistency.
Moving to Xtext component
Fixed in HEAD
Closing all bugs that were set to RESOLVED before Neon.0