Dear all,

My name is Tran. I'm doing research on my master thesis. But I have troubles 
about how to analysis a sql script file *.sql which contains SQL and PL 
commands.
After that, I knew ANTLR can be used to parse languages. And I also know there 
is the PL/SQL grammar in the website.

But now, I want to know (after searching a lot but I didn't find out) how I can 
use the result after using the method parse for the start rule?
I'm programming with C# (I cannot change into Java which has more 
documentations).

I want to retrieve which commands in the script, which objects are accessed, 
which ... How can I do?  Can you show me some tutorials (step by step)?
I don't know what I can do after this?
ANTLRFileStream input = new ANTLRFileStream("test.sql");
            PLSQL3Lexer lexer = new PLSQL3Lexer(input);
            CommonTokenStream tokens = new CommonTokenStream(lexer);
            PLSQL3Parser parser = new PLSQL3Parser(tokens);
            PLSQL3Parser.start_rule_return r = parser.start_rule();

Thank you for all your help. I need you very much.

Tran



_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org/mailman/listinfo/antlr-dev

Reply via email to