John/All
TOKEN solved the problem you mentioned but I am still stuck with the
original issue.
It still barfs when it encounters reserved word 'funny' in a sentence
[debugged it] and that leads to unsuccessful transfer of value to String aa.
Do you have any suggestion?
Thanks
Hitender
//grammar
@init {
String aa;
}
funnyT=TOKEN { aa = $funnyT.text; }
//generated code
funnyT=(Token)match(input,TOKEN,FOLLOW_TOKEN_in_acl472);
String aa = (funnyT!=null?funnyT.getText():null);
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.