This project is not mantained anymore. But this grammar has been ported to antlr4 by community and available here: https://github.com/antlr/grammars-v4/tree/master/sql/plsql
This is a [almost] full parser for PL/SQL language that includes a Lexer, Parser (that optionally generates an Abstract Syntax Tree) and a TreeWalker.
Note: This parser supports 11g version.
https://github.com/porcelli/plsql-parser/issues
Current version is target for Java
language, but may be easy to port it to any other target.
If you're interested in commercial support of this or any other parser, contact me alexandre.porcelli@gmail.com.
(The Apache License, Version 2.0)
Copyright (c) 2010 Alexandre Porcelli [alexandre.porcelli@gmail.com]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
- Oracle is a registered trademark of Oracle Corporation.
- PL/SQL is a trademark of Oracle Corporation.
- Java is a trademark of Oracle Corporation.
- ANTLR is a registered trademark of Terence Parr.