Dear All,
I'm adding a action at the end of a rule to process each node/subrule. Here is an example of the rule: P: R1 R2 ->^(ROOT R1 R2) //ROOT is a pseudo node { handleP(...); } ; In the handleP action, I want to pass the current ROOT node and also the following children node R1 and R2. How am I gonna do that? I know there is a root_0 that could be used to represent the root node of the rule P, but to the handleP, it just wants to be passed the nodes that it's interested. Have anybody got any ideas? Thank you all very much! Linlin Xie --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to il-antlr-interest@googlegroups.com To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com 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