Hello,
Let's say, I have the following grammar:
rule1: key = value
-> ^(RULE1_TOKEN value)
value: signed_int
| ......
signed_int: ('+' | '-') ? INT
;
in the tree grammar,
i do the following
rule1: ^(RULE1_TOKEN value)
{
char* temp = value.text->chars;
}
but in the case of value is signed_int, temp only contains the + or - sign,
but not the INT part,
and this also happens for any alternative of value in which the rule is
composed of more than one token
So, i was wondering why does this happen, and how to get the whole text
matched for the rule?
Thank you for your time :)
Amr Muhammad
Cairo Univ. Computer Eng. Grad.
twitter:@amrmuhammad <http://twitter.com/amrmuhammad>
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.