[antlr-interest] Records

Terence Parr parrt at cs.usfca.edu
Sun Jul 16 15:05:28 PDT 2006


On Jul 16, 2006, at 2:53 PM, Phil Ritchie wrote:

> [Using ANTLRWorks 1.0ea11]
>
> I'm creating a grammar to parse a record oriented file. (I know,  
> there are more appropriate ways.) Everything works just dandy for  
> the first record but then parsing stops. I have defined my start  
> rule as:
>
> file    :    record+
>         ;
>
> The whole definition of record appears to be fine so I'm stumped.

Whitespace issue?  Returning newline as a real token on the main  
"channel"?

Ter



More information about the antlr-interest mailing list