[antlr-interest] return result of a rule reference directly

Hugo Leeney hugo.leeney at gmail.com
Fri Jun 2 10:23:53 PDT 2006


Sorry, desired generated code should have looked like:

string MyParser::rule1() {
    /*NAMESPACE STUFF...*/
    try {
        return rule2();
    }
    catch ( .....

method return type changed from 'void' to 'string'

HL


More information about the antlr-interest mailing list