[antlr-interest] Problem with ASTLabelType option and getAST method (C++)
Bryan Ewbank
ewbank at synopsys.com
Wed Oct 20 02:04:36 PDT 2004
Hi Folks,
Found what I think is a bug in C++ code generation... Given the following:
class MyParser extends Parser;
options { buildAST=true; ASTLabelType="RefTreeNode"; }
...
The generated method MyParser::getAST() has the wrong type - it ends
up as antlr::BaseAST, rather than using the type provided by the user
in the ASTLabelType option.
I ended up coding around this by adding a getMyAST() method...
- Bryan Ewbank
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list