sipha 3.0.0

PEG parser, syntax trees, and code generation
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Grammar-agnostic analysis helpers for sipha syntax trees.
//!
//! Provides scope extents (offset → scope) and definition collection for LSP
//! (go-to-def, references, document symbols). Grammar-specific logic is passed
//! via callbacks.

mod definitions;
mod scope_extents;

pub use definitions::collect_definitions;
pub use scope_extents::{build_scope_extents, scope_at_offset};