[antlr-interest] Template rewrite of assignment to List set function call

Mark Gressett Mark.Gressett at sas.com
Mon Jun 25 09:17:56 PDT 2012


Sorry, left out the hard part.

I'm trying to rewrite *array element* assignment to list syntax.

So the example should read something like
x[1] = y[2] = z = a+1
translates to
x.put(1, y.put(2, z=a+1))

Getting the array element reference back up the tree is what is (mainly) thwarting me.



More information about the antlr-interest mailing list