[antlr-interest] ANTLR Grammar error - Illegal token.

Tired Ofsubscriptions vsubscr at gmail.com
Mon Aug 4 08:11:35 PDT 2008

I think there is a problem because 'scope' is a reserved word.


2008/8/4 <rkevinburton at charter.net>

> I am checking my grammar and getting the following errors:
> [09:11:21] error(100): ECMAScript.g:1530:2: syntax error: antlr:
> ECMAScript.g:1530:2: unexpected token: :
> [09:11:21] error(100): ECMAScript.g:1548:2: syntax error: antlr:
> ECMAScript.g:1548:2: unexpected token: :
> [09:11:21] error(100): ECMAScript.g:1555:5: syntax error: antlr:
> ECMAScript.g:1555:5: unexpected token: scope
> When I look at the lines indicated I don't see a problem. Moreover I don't
> see a reference to the token that is "unexpected". Would someone with more
> experience with ANTLR than me please look at the attached grammar and see if
> you can see what is wrong?
> Thank you.
> Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080804/2b08cf83/attachment.html 

More information about the antlr-interest mailing list