Skip to main content

Crate perl_symbol_types

Crate perl_symbol_types 

Source
Expand description

Unified Perl symbol taxonomy for LSP tooling.

This crate provides a single, authoritative definition of Perl symbol kinds used across the parser, semantic analyzer, workspace index, and LSP providers.

§Design Goals

  • Single source of truth: All symbol classification flows through this crate
  • Perl semantics: Distinguishes variables by sigil type (scalar/array/hash)
  • LSP compatibility: Direct mapping to LSP protocol symbol kinds
  • Zero-cost abstractions: Enum variants are Copy types with inline methods

Enums§

SymbolKind
Unified Perl symbol classification for LSP tooling.
VarKind
Variable sigil classification for Perl’s three primary container types.