[antlr-interest] Re: Frustrating (MSV)C++ EOF problem with 2.7.2a

Sinan sinan.karasu at boeing.com
Mon Apr 15 08:47:13 PDT 2002


tom_m_roeder wrote:
> 
> Furthermore...having compiled the tracing into the lexer and parser, I
> see that it thinks that the stream is returning WHITESPACE to it,
> where my definition of WHITESPACE is
>  (' ' | '\t' | '\n' {newline();} | '\r')*
> 
> I hope that there is something obviously wrong with this.
> 
>    Thanks,
> 
>       Tom Roeder
> 

You mean

(' ' | '\t' | '\n' {newline();} | '\r')+  <===== ( + , not * )

otherwise you can have way too much whitespace in a very small file.

Sinan

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list