Skip to content

Add multi-language parsing support for supported grammars#21

Merged
rabii-chaarani merged 1 commit into
mainfrom
codex/parse_supp_languages
Jun 12, 2026
Merged

Add multi-language parsing support for supported grammars#21
rabii-chaarani merged 1 commit into
mainfrom
codex/parse_supp_languages

Conversation

@rabii-chaarani

Copy link
Copy Markdown
Owner

Summary

  • Extend the ingest pipeline to recognize Rust, Go, C, C++, and Fortran source files.
  • Improve capture mapping and context-aware parsing so methods, modules, imports, macros, and calls are classified more accurately across languages.
  • Update package metadata and README to reflect the broader language support.
  • Add regression coverage for parser registry resolution, supported-language semantics, and context rule handling.

Testing

  • Added unit and integration-style tests covering language resolution, capture mapping, and mixed-language graph materialization.
  • Not run (not requested).

Make Rust, Go, C, C++, and Fortran first-class default parser registrations by adding their tree-sitter grammars as runtime dependencies and tightening profile-driven capture normalization against real grammar output. Context-aware capture selection now distinguishes methods from functions where grammar node types overlap.

Constraint: Supported languages must parse in normal installs without optional extras
Constraint: Custom profile grammars should still be skipped gracefully when unavailable
Rejected: Keep grammar packages optional | would leave supported-language parsing unavailable by default
Confidence: high
Scope-risk: moderate
Directive: Keep new language support profile-driven unless graph-builder ownership semantics require a shared ontology behavior
Tested: ./.venv/bin/pip install -e .; ./.venv/bin/ruff check .; ./.venv/bin/pytest; ./.venv/bin/codebase-graph setup --repo-root . --mcp-client none; scryer validate_model
Not-tested: Compiler-grade type resolution or language-specific call resolution beyond core graph semantics
@rabii-chaarani rabii-chaarani merged commit 154006f into main Jun 12, 2026
36 checks passed
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