[antlr-interest] Re: New AST and findAll in C++

lgcraymer lgc at mail1.jpl.nasa.gov
Tue Nov 30 00:28:52 PST 2004



Bryan--

These are relic methods from early in SORCERER development.  Best is
to avoid them--either substitute a tree grammar search or a visitor
class (easiest way to build a vector of single nodes).  I would be
surprised if they made it into ANTLR 3.

--Loring


--- In antlr-interest at yahoogroups.com, "Bryan Ewbank" <ewbank at s...> wrote:
> I'm attempting to use findAll in the C++ world with a new node type
> (ASTLabelType="MyNodeRef"), and have problems because the functions
are all
> declared using the BaseAST referent class - thus the link fails
because of
> type mismatches.
> 
> Do I need to redefine all these functions in my new AST node type,
or do I
> just use vector<RefAST> and pretend it matches??
> 
> - Bryan Ewbank
> "The best tool for requirements analysis and design is a crayon"





 
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