[antlr-interest] Fwd: Invalid grammar name, translate to 3.0 Grammar.

Guy Kroizman kroizguy at gmail.com
Mon Jul 14 22:21:24 PDT 2008


http://www.antlr.org/wiki/display/ANTLR3/Migrating+from+ANTLR+2+to+ANTLR+3

---------- Forwarded message ----------
From: <rkevinburton at charter.net>
Date: Tue, Jul 15, 2008 at 12:38 AM
Subject: Re: [antlr-interest] Invalid grammar name, translate to 3.0
Grammar.
To: Johannes Luber <jaluber at gmx.de>
Cc: antlr-interest at antlr.org


Thank you for the first tip.

Where do I get vTov3? I could not find anything like it on the ANTLR site.

Kevin

---- Johannes Luber <jaluber at gmx.de> wrote:
> rkevinburton at charter.net schrieb:
> > I have two problems. The first is related to the ECMA Script grammar
submitted to the ANTLR Grammar page. I tried to load it into ANTLRWorks and
several errors were generated:
> >
> > The first is with:
> >
> > grammar JavaScript;
> >
> > ANTLRWorks indicates that this is not a valid grammar name. Why not?
Where is a list of the "valid" grammar names?
>
> The file name must be the same as the grammar name.
> >
> > The second question is resulting from trying to load several of the
grammars from the ANTLR grammar page into ANTLRWorks (KCSParse is one
example CSharpParser.g) and I get an error indicating that this grammar is
not recognized as an ANTLR 3.x grammar. Is there a specification somewhere
that can tell me how to translate "earlier" grammars to 3.x?
>
> There is a tool named v2Tov3 or something like that. It does most of the
> grunt work but it's not perfect.
>
> Johannes
> >
> > Thank you.
> >
> > Kevin
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080715/13ea69f0/attachment.html 


More information about the antlr-interest mailing list