[antlr-interest] unexpected token: :

Micheal J open.zone at virgin.net
Sat Aug 12 07:43:57 PDT 2006


Hi,

> I'm trying to convert a v2 grammar to v3.  I'm getting lots 
> of errors about ':' tokens.  Here's a fairly minimal testcase 
> I've made while trying to track this down:
> 
>   grammar AS3Parser;
>   x : y | z ;
>   y : "class" ;
>   z : "package";
> 
> Here's the output I get,

Try:

grammar AS3Parser;
x : y | z ;
y : 'class' ;
z : 'package' ;

Micheal

-----------------------
The best way to contact me is via the list/forum. My time is very limited.



More information about the antlr-interest mailing list