[antlr-interest] Does ANTLR read the entire file before parsing?

siva.kumar at loglogic.com siva.kumar at loglogic.com
Wed Jul 2 15:49:46 PDT 2008


Thanks for your reply, Gavin.

-Siva

-----Original Message-----
From: Gavin Lambert [mailto:antlr at mirality.co.nz] 
Sent: Tuesday, July 01, 2008 2:13 PM
To: Siva Kumar (siva.kumar at loglogic.com); antlr-interest at antlr.org
Subject: Re: [antlr-interest] Does ANTLR read the entire file before
parsing?

At 08:48 2/07/2008, siva.kumar at loglogic.com wrote:
 >   Just wanted confirmation that ANTLR will generate code that 
will
 >read the entire file before it's passed to the lexer.

The timing is a little different (I think it actually slurps the 
file when the lexer is asked to produce the first token, which is 
when the token stream is created), but essentially yes.



More information about the antlr-interest mailing list