[antlr-interest] unexpected token: :

David Holroyd dave at badgers-in-foil.co.uk
Sat Aug 12 08:29:05 PDT 2006


On Sat, Aug 12, 2006 at 03:43:57PM +0100, Micheal J wrote:
> 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' ;

Thank you!

How about I create a wiki page, 'Differences between ANTLR 2 and ANTLR 3'?


ta,
dave

-- 
http://david.holroyd.me.uk/


More information about the antlr-interest mailing list