[antlr-interest] How to access returned objects

Hendrik Boom hendrik at topoi.pooq.com
Thu Aug 21 08:38:41 PDT 2008


I have a rule 

body returns [ std::string t9 ]
    : t9:term7 ( DOLLAR w term7 {t9 += "$" + t;} )*;

But I can't figure out hos to access the returned value in a rule that
calls body.

I'm using
   ANTLR Parser Generator   Version 2.7.6 (20070206)   1989-2005,
which is the version in Debian etch.

-- hendrik



More information about the antlr-interest mailing list