[antlr-interest] [BULK] question about how to store variable/procedure definitions and retrieve back for Oracle

Charlie Yang Cyang at infobal.com
Wed Feb 22 09:01:52 PST 2006


Hi, All:

Now I'm working on an Oracle parser.

 I  think Oracle's syntax is kind of sick. Say, if call a procedure without
any parameters, just use the procedure name, even without a pair of
parentheses. without looking back from definitions, i don't know it is an
identifer or a function call.

For example:
...
lp_close_file;		// lp_close_file defined as local procedure  before 
...

so the statement is context-sensitive.  Can I store variable/procedure
definitions into antlr grammar and retrieve back to determine  the token is
procedure or variable.  or there is another way abround?

Charlie




More information about the antlr-interest mailing list