[antlr-interest] saving some memory
thrutchy
eric_mahurin at yahoo.com
Fri Jul 30 17:07:49 PDT 2004
ANTLR developers,
The next time around you might consider making token types that are a
constant string have the resulting tokens use those constant strings
rather than allocating new strings for each instance of the token.
So, this way the strings "if", "while", "<<", etc will be allocated
only once and shared throughout an AST. I just tried finding a way to
do it with the current version by overriding methods and didn't see a way.
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