[antlr-interest] Re: Own AST : initializing extra private members

Eric Mahurin eric_mahurin at yahoo.com
Thu Aug 19 18:43:47 PDT 2004


--- In antlr-interest at yahoogroups.com, Kristoff Tempelaere
<kristoff_tempelaere at y...> wrote:

> Can this be done in a better way?  Instead of using
myfactory.create(token), i would like the parser calls
MyFactory.create(token,xvalue)

Where does xvalue come from?  Is it constant or does it rarely change?
 If so, you could make your own factory class that has a static xvalue
variable that you would assign whenever needed and then your new
create method would use this static value.

Eric




 
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