[antlr-interest] howto replace java .setType() with clean antlr
Daniel Zuberbuehler
dzubi at users.sourceforge.net
Thu Aug 11 12:45:40 PDT 2005
Hi again!
I'm not sure if I understood that right, are the following two constructs
identical? If not, how do I replace the .setType() in the first version with
antlr code?
with_clause : w:WITH^ c_name_list SEMI!
{ #w.setType(WITH_CLAUSE); }
;
with_clause : w:WITH^ c_name_list SEMI!
{ #w = #[WITH_CLAUSE] }
;
Thanks,
Daniel Zuberbühler
More information about the antlr-interest
mailing list