Hi,
I have a grammar such below:

a: b A
b: C^ B

What I want is to set "A" token in rule "a" as the last branch of rule "b"
's parse tree without changing the grammar, rules, tokens etc. (because the
rules and tokens are used somewhere else, the grammar is not such simple of
course)

That's, I want a tree like: ^(C B A). But I only know how to set "A" as the
root of  rule "a" with this grammar(that is done by a: b A^), and it causes
a tree like ^(A C B) which I do not want.

Is there a way to construct the tree I want with above grammar??

I need an urgent answer. Thanks in advance.
-- 
-safiye

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

Reply via email to