4

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.

Adam Paynter
  • 46,244
  • 33
  • 149
  • 164

3 Answers3

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
  • 1
    I think he is referring to the grammar definitions necessary to parse the language. – mikerobi Oct 07 '10 at 17:40
  • 1
    I 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
  • 3
    For 11g see http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/langelems.htm – Bob Jarvis - Слава Україні Oct 07 '10 at 17:50