Skip to main content

Crate perl_symbol

Crate perl_symbol 

Source
Expand description

Unified Perl symbol model: taxonomy, cursor extraction, search indexing, and AST projection.

This crate consolidates the former perl-symbol-types, perl-symbol-cursor, perl-symbol-index, and perl-symbol-surface microcrates into a single published facade (see ADR-0041). Internal module boundaries are preserved; the public surface is defined by api.rs.

§Modules

  • types — Symbol taxonomy: SymbolKind, VarKind, and LSP mappings
  • cursor — Cursor-based symbol extraction helpers
  • index — Trie + inverted-index symbol search
  • surface — Projection layer: derives symbol views from Perl AST

§Quick start

use perl_symbol::{SymbolKind, VarKind};

let var = SymbolKind::Variable(VarKind::Scalar);
assert_eq!(var.sigil(), Some("$"));

Re-exports§

pub use api::*;

Modules§

api
Public API re-exports for perl-symbol.
cursor
Cursor-oriented symbol extraction for Perl source text.
index
Symbol search index primitives.
surface
Projection layer: derives stable, reusable symbol-bearing views from the Perl AST.
types
Symbol taxonomy: SymbolKind, VarKind, and LSP protocol mappings.