The following code does not generate the return value struct for the start rule:
robotC_Parser_robotC_parser_return_struct. The return value XmlNodeTreePtr
cannot be accessed by the main program.

If output=AST is specified, the return value struct is generated and
un-needed code is also generated to build an AST that will not be
used.

parser grammar robotC_Parser;

options
{
        language=C;
        k=1;
        tokenVocab=robotC_Lexer;
}
//      output=AST;
//      ASTLabelType=pANTLR3_BASE_TREE;


////////////////////////////////////////////////////////////////////////////////////////////////////

// P a r s e r   R u l e s

robotC_parser[SymbolTablePtr pThisPtr] returns[XmlNode * XmlNodeTreePtr]
        options {k=1;}
        :
        rule body
        ;

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to