Hello Nicolas, Here is a very crude example: > > E = E + E > E = Integer > > input: 1 + 2 + 3 >
Yes. TatSu will produce a right-associative tree for that example. The tool currently doesn't provide for defining left/right associative rules. I'm not sure how useful that feature would be, as the desired associativity can be obtained by transforming the grammar (removing the direct right-recursion). E = E + T E = T T = Integer Cheers, -- Juancarlo *Añez*
_______________________________________________ PEG mailing list PEG@lists.csail.mit.edu https://lists.csail.mit.edu/mailman/listinfo/peg