[antlr-interest] newbie question
Randall R Schulz
rschulz at sonic.net
Wed Jul 4 16:01:55 PDT 2007
On Wednesday 04 July 2007 15:53, ali azimi wrote:
> Hi,
>
> The followings are part of the grammar I have written. When I try
> to generate code, two error messages appears which I have mentioned
> them at the bottom. Could you please tell me why?
Ah. A classic. It happened to me not only the first time I wrote an
ANTLR grammar, but the second time as well, which was after months away
from ANTLR for a few months.
Anyway, lexical rule names must start with an upper-case letter. Grammar
productions must start with a lower-case letter.
..
>
> Best wishes,
> Al
Randall Schulz
More information about the antlr-interest
mailing list