[antlr-interest] howto replace java .setType() with clean antlr
Daniel Zuberbuehler
dzubi at users.sourceforge.net
Fri Aug 12 00:49:58 PDT 2005
On 21:49:44 11/08/2005 John Barnette <jbarnette at gmail.com> wrote:
> Assuming you have a WITH_CLAUSE token declared, try:
>
> with_clause: w:WITH c:c_name_list SEMI
> { ## = #( #[WITH_CLAUSE, "WITH_CLAUSE"], c ); }
>
unfourtunately this didn't work for me. The tree structure is ok, but it
gives me a different column value for the WITH_CLAUSE node (it gets the
same column value like the first node of the c_name_list)
Thanks anyway
Daniel Zuberbühler
More information about the antlr-interest
mailing list