[antlr-interest] Re: Problem converting grammar into java files
bhuvana_t_76
bhuvana_t_76 at yahoo.com
Fri Jul 9 04:56:52 PDT 2004
hi,
Right. There is a DmlSQL2 package available for download. I tried to
convert it from grammar to java file. When i give like
java antlr.Tool DmlSQL2.g
it creates .cpp files. How to get the java stuff from a grammar. Can
u guide me?
Thanks.
bhuvana.
--- In antlr-interest at yahoogroups.com, Ric Klaren <klaren at c...> wrote:
> On Fri, Jul 09, 2004 at 09:47:03AM -0000, bhuvana_t_76 wrote:
> > This is creating all the lexer and parser .java files. I
downloaded
> > SqlSQL2.zip from the website www.antlr.org. And I tried to give
like
> > this after extracting:
> >
> > java antlr.Tool SqlSQL2.g
> >
> > This ends up in error as:
> > error: grammar DmlSQL2Parser not defined
> > error: grammar DmlSQL2Lexer not defined
>
> Looks like SqlSQL2 builds on top of the DmlSQL2 package also
available from
> the website (the link above the DmlSQL2 package). Check out the
grammar
> inheritance section of the manual for the mechanisms behind it.
>
> Cheers,
>
> Ric
> --
> -----
+++++*****************************************************+++++++++---
----
> ---- Ric Klaren ----- j.klaren at u... ----- +31 53 4893755 ----
> -----
+++++*****************************************************+++++++++---
----
> Wit is cultured insolence. --- Aristotle
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list