Re: Just arrived...
- ANTLR didn't like it. It insists on complaining :
error: Lexer rule EOF is not defined
Enviada em: Quinta-feira, 18 de Mar�o de 1999 14:07
Para: firstname.lastname@example.org; Douglas.Atique@...
Assunto: Re: [antlr-interest] Just arrived...
Because antlr defines EOF as 1 ....
WellDefinedToken ('\3'..'\377')* EOF
- Douglas Atique hath spoken:
>From: Douglas Atique <Douglas.Atique@...>It is a predefined token really and "special"...there is no real rule
>I have just subscribed to the list, but I have been looking at ANTLR and
>earlier PCCTS for a while. Just now I had the opportunity to develop a
>parser with ANTLR, and the article at Dr. Dobb's did a great job in
>As a new tool, ANTLR presented some behaviors to which I am not accustomed.
>For example, I have read in the reference manual that I can reference the
>EOF predefined rule in any parser. As it starts with a capital letter, I
>conclude that it's a lexer rule. Then, why does ANTLR complain when I
>reference this rule in the lexer?
associated with it; it signifies a file system state as opposed to a real
"character", contrary to PCs etc...