Where can I find an official grammar for the PL/SQL programming language? I see that the Antlr project has a user-contributed grammar, but I was hoping to find a more authoritative source.
Asked
Active
Viewed 2,552 times
4
-
2Making it easier for 3rd parties to parse their language is not something I would expect from Oracle. – mikerobi Oct 07 '10 at 17:35
-
@mikerobi: True enough! I can still be hopeful. :) – Adam Paynter Oct 07 '10 at 17:37
3 Answers
1
The official grammar for the PL/SQL can be found at the Chapter 13 of the PL/SQL Language Reference.

bruno
- 2,213
- 1
- 19
- 31
1
Also, you can take a look at a community PL/SQL ANTLR grammar in ANTLR grammars repository.

Ivan Kochurkin
- 4,413
- 8
- 45
- 80
0
You mean the documentation? It'd help to know what version of Oracle -- this link covers 9i (v9.2 technically).

OMG Ponies
- 325,700
- 82
- 523
- 502
-
1I think he is referring to the grammar definitions necessary to parse the language. – mikerobi Oct 07 '10 at 17:40
-
1I had seen that documentation before, but I had never noticed the [PL/SQL Language Elements section](http://download.oracle.com/docs/cd/B10500_01/appdev.920/a96624/13_elems.htm#37784). Although it is not a unified grammar, it certainly provides the components needed for the various elements! – Adam Paynter Oct 07 '10 at 17:40
-
3For 11g see http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/langelems.htm – Bob Jarvis - Слава Україні Oct 07 '10 at 17:50