[antlr-interest] AST build with input tokens out of order
Robert Jarzmik
robert.jarzmik at free.fr
Thu Aug 18 11:53:26 PDT 2011
Bart Kiers <bkiers at gmail.com> writes:
> Hi Robert,
>
> AFAIK, you'll need to pass the 'type' of your array down your tree as
> a parameter.
Thank you very much, it's exactly what I needed.
Just for the record, I had to change
> -> ^(IDENTIFIER ^( DIMS constant+) {new CommonTree(type)})
into
-> ^(IDENTIFIER ^( DIMS constant+) {type})
That might be linked with antlrworks-1.4.3.jar maybe ...
But the solution is exactly what I was looking for, and will provide me with the
key to finish my AST.
Cheers.
--
Robert
More information about the antlr-interest
mailing list