Wednesday, February 20, 2002 05:05 AM
I would like to generate AST Nodes in a prepefined order.
For example in the following grammar:
rule1 : rule2 | rule3;
rule : "start" ( rule1 )* "end";
I would like rule3 nodes to appear before any rule2 node into the generated tree. Tree walking will then compute all rule3 nodes before computing the first rule2 node.
Is it possible ? If it is, how can I do that?