[antlr-interest] SQL Parser(C#):Could this work??

Addi Jamshidi ajpb at yahoo.com
Thu Nov 14 23:06:30 PST 2002


Sorry for the bandwidth, but as I am getting the hang
of Antlr I find it rather very impressive...

Going back to my original requirement of having a SQL
parser in C#, I am wondering if I can do the
following:

1) Get the Antlr grammar for Oracle SQL
2) Run  Antlr-csharp parser generator on that SQL
grammar file. The result then should hopefully be a
Csharp SQL parser that I can use and modify to output
XML for me.

My first question: Does above make sense and is this a
right approach?

And my second question.....

So to test Antlr Csharp parser generator, I did the
following:

1) Download Antlr 2.7.2a2 -- unzipped the file
2) Download Antlr-2.7.2a2-CSahrp - unzipped it in the
the antlr-2.7.2a2 directory.

3) Following the instructions I then:
 
a) Set my CLASSPATH to antlr-2.7.2a2 directory, as
well as setting it to include antlr.jar

b) Ran build.bat file (it did go through with success)

4) Just to see how it works, I went to the examples
directory for csharp\Calc. And I typed the following
at the command line:

java antlr.Tool calc.g

and here is what happened:

ANTLR Parser Generator   Version 2.7.2a2 (20020112-1) 
 1989-2002 jGuru.com
panic: Cannot instantiate code-generator:
antlr.CSharpCodeGenerator


So my second question is: What does above error mean?
And What is it that I missed and what do I need to do
so it would generate the CSharp parser for me? 

Many thanks in advance,




__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list