[antlr-interest] Problems with n-ary trees
BoneCrusher Pouliot
dudewithattitude at hotmail.com
Thu Jul 28 11:35:25 PDT 2005
I want to compute the result of a n-ary tree, something like :
#(PLUS A B C)
instead of the good ol' :
#(PLUS A #(PLUS B C))
from the calculator exemple. Here the rule would be :
#(PLUS (expr)*)
but I want to keep the result of each children in a vector cell and the add
all the elements in the vector. Anyone can help ? Any info would be greatly
appreciated !
More information about the antlr-interest
mailing list