Skip to content

Feature/plsql support#1033

Open
ouzsrcm wants to merge 7 commits into
DeusData:mainfrom
ouzsrcm:feature/plsql-support
Open

Feature/plsql support#1033
ouzsrcm wants to merge 7 commits into
DeusData:mainfrom
ouzsrcm:feature/plsql-support

Conversation

@ouzsrcm

@ouzsrcm ouzsrcm commented Jul 11, 2026

Copy link
Copy Markdown

What does this PR do?

Checklist

  • Every commit is signed off (git commit -s) — required, CI rejects
    unsigned commits (DCO, see CONTRIBUTING.md)
  • Tests pass locally (make -f Makefile.cbm test)
  • Lint passes (make -f Makefile.cbm lint-ci)
  • New behavior is covered by a test (reproduce-first for bug fixes)

ouzsrcm and others added 6 commits July 11, 2026 17:40
Vendors AndreasMaierDe/tree-sitter-plsql @ 28aebef (MIT, ABI 14, no
external scanner) and adds the grammar_plsql.c compile shim. Updates
MANIFEST.md and THIRD_PARTY.md grammar counts. Local patch: quoted
tree_sitter/parser.h include so the per-grammar header resolves.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Oğuz <oguzhan.saricam@gmail.com>
Register Oracle PL/SQL in lang_specs (packages/types/triggers as Class,
procedures/functions as Function, ref_call/branches/assign/raise) and map
.pks/.pkb/.pck/.pls/.plb/.plsql/.fnc/.trg/.bdy/.tps/.tpb. Leave .sql and
.prc unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Oğuz <oguzhan.saricam@gmail.com>
Resolve fnc_name/prc_name for procedures and functions, package_name/
type_name/trigger_name for Class nodes, and package-qualified ref_call
callees (PKG.FNC) for CALLS edges.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Oğuz <oguzhan.saricam@gmail.com>
Add extension/extraction/grammar regression+label tests for PL/SQL, plus
emp_pkg/util_pkg fixtures verifying Class/Function and CALLS. Document
CREATE TYPE ... AS OBJECT as a known grammar ERROR-node limitation.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Oğuz <oguzhan.saricam@gmail.com>
Signed-off-by: Oğuz <oguzhan.saricam@gmail.com>
@ouzsrcm ouzsrcm requested a review from DeusData as a code owner July 11, 2026 15:31
@DeusData DeusData added the enhancement New feature or request label Jul 14, 2026
@DeusData DeusData added this to the 0.9.2-rc milestone Jul 14, 2026
@DeusData DeusData added parsing/quality Graph extraction bugs, false positives, missing edges language-request Request for new language support priority/backlog Valuable contribution, lower scheduling urgency; review when maintainer capacity opens. labels Jul 14, 2026
@DeusData

Copy link
Copy Markdown
Owner

Thanks for the PL/SQL contribution. I verified the vendored parser against AndreasMaierDe/tree-sitter-plsql at commit 28aebef209be: it is MIT licensed and byte-identical across 353,744 lines except for the documented local include-path change. This is a 0.9.2-rc language enhancement; remaining review focuses on full build and sanitizer coverage, grammar limits, extraction quality, and representative PL/SQL fixtures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request language-request Request for new language support parsing/quality Graph extraction bugs, false positives, missing edges priority/backlog Valuable contribution, lower scheduling urgency; review when maintainer capacity opens.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants