[antlr-interest] Input buffer instead of reading the whole file

Bob temporaryemail at comcast.net
Wed May 19 08:30:57 PDT 2010


Hi, a back-breaker question,

 

Is it possible under these circumstances to have the input file read in
blocks (say, 8kb) instead of reading the whole file into memory?

 

I'll be writing actions for every rule (not using Antlr's AST). Once the
actions are processed the input history is not used.

 

Reason: Some source files are 800mb - 1.4gb in size and reading the entire
thing into 32 bit address space doesn't leave much leftover.

 

If it's possible to limit the input buffer size, can you point me in the
right direction?

 

Thanks,

Bob

 



More information about the antlr-interest mailing list