[antlr-interest] Incremental Parsing?

Sohail Somani sohail at taggedtype.net
Mon Jul 16 18:25:25 PDT 2007


On Mon, 2007-07-16 at 20:51 -0400, Benji Smith wrote:
> The JavaCC parser works well, except that I can't parse the file
> record-by-record. I have to parse the entire file, returning a
> collection of Record objects at the end.

Set up your grammar to only do one record at a time. Then keep parsing
until you get back a null record (or whatever)

Should work ;-)



More information about the antlr-interest mailing list