{"id":13414216,"url":"https://github.com/developeron29/PLSQLParser","last_synced_at":"2025-03-14T21:32:15.837Z","repository":{"id":14246871,"uuid":"16954300","full_name":"developeron29/PLSQLParser","owner":"developeron29","description":"A PLSQL parser built using Java and ANTLR4 ","archived":false,"fork":false,"pushed_at":"2021-03-18T15:22:11.000Z","size":688,"stargazers_count":32,"open_issues_count":1,"forks_count":21,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-07-31T21:52:00.783Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://ayushnarula.com/plsql.html","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/developeron29.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-18T15:54:46.000Z","updated_at":"2024-05-05T05:40:12.000Z","dependencies_parsed_at":"2022-08-31T05:51:35.593Z","dependency_job_id":null,"html_url":"https://github.com/developeron29/PLSQLParser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developeron29%2FPLSQLParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developeron29%2FPLSQLParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developeron29%2FPLSQLParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developeron29%2FPLSQLParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developeron29","download_url":"https://codeload.github.com/developeron29/PLSQLParser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221508976,"owners_count":16834807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T21:00:16.604Z","updated_at":"2024-10-26T07:30:42.013Z","avatar_url":"https://github.com/developeron29.png","language":"Java","funding_links":[],"categories":["Database"],"sub_categories":["Analysis"],"readme":"\n\n# A PLSQL parser built using ANTLR 4 \n\n[![Join the chat at https://gitter.im/developeron29/PLSQLParser](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/developeron29/PLSQLParser?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n## About\n\nThis is a PL/SQl parser built on top of ANTLR4 \n\n## Setup\n\nTo install ANTLR 4, if you don't have it already\n\n```\n\ncd /usr/local/lib\nsudo wget http://antlr.org/download/antlr-4.2-complete.jar\n\n```\n\n### Note - Update it to the latest ANTLR, as of when you use it ( [Reference](http://www.antlr.org/) )\n\n## How to run\n\n```\n export CLASSPATH=\".:/usr/local/lib/antlr-4.2-complete.jar:$CLASSPATH\"\n alias antlr4='java -jar /usr/local/lib/antlr-4.2-complete.jar'\n alias grun='java org.antlr.v4.runtime.misc.TestRig'\n \n git clone https://github.com/developeron29/PLSQLParser\n cd PLSQLParser\n antlr4 PLSQL.g4  \n javac PLSQL*.java\n\n grun PLSQL plsql_block -gui\n \u003cEnter your PLSQL code now-\u003e For example:\n declare\n salary number(6);\n ^D [Cmd-D for Mac]\n \n ```\n\nThis parses and builds the PLSQL tree for you\n\n## Demo\n\nFor above example of \n```\ndeclare\nsalary number(6);\n```\nParsed tree would be:\n\n![antlr4_parse_tree_1.png](https://github.com/developeron29/PLSQLParser/raw/master/antlr4_parse_tree_1.png)\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 Ayush Narula\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperon29%2FPLSQLParser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloperon29%2FPLSQLParser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperon29%2FPLSQLParser/lists"}