[antlr-interest] pretty printing in the c target

Gavin Lambert antlr at mirality.co.nz
Mon Dec 15 23:35:11 PST 2008


At 15:37 16/12/2008, Jim Idle wrote:
 >You don't do that, you just let the factory take care of
 >it all. When you close, it has trcked all the mmemory and
 >it frees it all for you. You just use teh strings and forget
 >about them as if they were Java objects. Use the factory in
 >the parser (see C examples for poly for instance), and you
 >don't even need to close your own factory.

What if you've got lots of temporary strings though (or a big 
input file)?  Wouldn't the memory usage add up quickly?



More information about the antlr-interest mailing list