Trouble with parser rules without assignments [SOLVED] [message #1180595] |
Mon, 11 November 2013 03:37 |
Gary Worsham Messages: 176 Registered: September 2013 |
Senior Member |
|
|
These ones work OK:
// zero argument instructions
Clr returns Clr: {Clr} "clr" ;
Not returns Not: {Not} 'not';
Absa returns Absa: {Absa} 'absa';
However, these do not:
IsElse: '@else' {IsElse};
IsEndif: '@endif' {IsEndif};
I don't notice any difference between that and this:
IsElse: {IsElse} '@else' ;
IsEndif: {IsEndif} '@endif' ;
And I don't have any explicit return types in my failing rules, but the same thing happened when I did try those.
IsElse and IsEndif are not showing up in my Ecore model and as a result they are not available anywhere else either.
I have to say that understanding parser rules is about the most difficult thing about Xtext!
[Updated on: Mon, 11 November 2013 14:40] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01433 seconds