[antlr-interest] Re: Is there an ANTLR trick/hack to specify "NEWLINE or EOF" in Lexer
Terence Parr
parrt at jguru.com
Thu Feb 6 09:54:53 PST 2003
On Wednesday, February 5, 2003, at 03:41 PM, micheal_jor
<open.zone at virgin.net> wrote:
>
>> Cool. Ok, so let's say EOF can be a real char. What does this
> mean?
>>
>> NONSENSE : (EOF)+ ;
>>
>> Ter
>
> That we'll be needing new error messages?.
Note sure how to detect all cases of this though :( Perhaps this just
means "infinite loop" ;)
Ter
> --
Co-founder, http://www.jguru.com
Creator, ANTLR Parser Generator: http://www.antlr.org
Lecturer in Comp. Sci., University of San Francisco
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list