Hi There Guys!. I QUick one this time:
I found something very strange, with the $ reference to label when
querying about the existence of that "conditional" label.
(I Copy paste the code)
grammar Issue;
base returns [Object ret]
@after
{
if ($label!=null); <-- DOESN'T WORK
if (label!=null); <-- WORKS!
}
: label=rule1 ';';
rule1 returns [String value]
: ID {$value=$ID.text;};
ID : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'0'..'9'|'_')*
;
WHY... i just don't kwow... i guess is an issue or maybe i am doing
something from, but in the book of ANTLR from the author a see cleary
the example that's isnt working...
Well only that!.
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en.