Skip to content

feat: add PL/SQL parser to monorepo#28

Merged
h3n4l merged 1 commit into
mainfrom
add-plsql-parser
Nov 3, 2025
Merged

feat: add PL/SQL parser to monorepo#28
h3n4l merged 1 commit into
mainfrom
add-plsql-parser

Conversation

@h3n4l
Copy link
Copy Markdown
Member

@h3n4l h3n4l commented Nov 3, 2025

Summary

  • Migrates the PL/SQL parser (Oracle 11g/12c) from standalone plsql-parser repository
  • Adds comprehensive test coverage with 370 SQL example files
  • Updates CI workflow to include plsql in test matrix
  • All tests passing successfully

Changes

  • Added PL/SQL grammar files (PlSqlLexer.g4, PlSqlParser.g4)
  • Added helper files (keywords.go, plsql_lexer_base.go, plsql_parser_base.go)
  • Added 338 test examples in plsql/examples/ directory
  • Added 32 test examples in plsql/examples-sql-script/ directory
  • Created Makefile for building and testing the parser
  • Updated package names from parser to plsql
  • Updated import paths to github.com/bytebase/parser/plsql
  • Updated .github/workflows/tests.yml to include plsql parser
  • Generated parser files using ANTLR 4 with Go target

Test plan

  • All 370 PL/SQL parser tests passing
  • Parser generation successful with ANTLR 4
  • CI workflow updated to include plsql parser
  • Package names and imports updated correctly

🤖 Generated with Claude Code

This commit adds the Oracle PL/SQL parser (supporting Oracle 11g and 12c) from the standalone plsql-parser repository into the unified parser monorepo.

Changes:
- Added PL/SQL grammar files (PlSqlLexer.g4, PlSqlParser.g4)
- Added helper files (keywords.go, plsql_lexer_base.go, plsql_parser_base.go)
- Added test infrastructure with 338 example files and 32 sql-script examples
- Created Makefile for building and testing the parser
- Updated package names from 'parser' to 'plsql'
- Updated import paths to github.com/bytebase/parser/plsql
- Updated CI workflow to include plsql in the test matrix
- Generated parser files using ANTLR 4 with Go target
- All 370 tests passing successfully

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@h3n4l h3n4l merged commit f427489 into main Nov 3, 2025
5 checks passed
@h3n4l h3n4l deleted the add-plsql-parser branch November 3, 2025 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant