Skip to main content

perl_parser_core/engine/
ast.rs

1//! AST facade for the core parser engine.
2//!
3//! This module re-exports AST node definitions from `perl-ast` and anchors them
4//! in the parser engine for the Parse → Index → Navigate → Complete → Analyze
5//! workflow used by LSP providers and workspace tooling.
6//!
7//! # Usage Example
8//!
9//! ```rust,ignore
10//! use perl_parser_core::engine::ast::{Node, NodeKind};
11//! use perl_parser_core::SourceLocation;
12//!
13//! let node = Node::new(NodeKind::Empty, SourceLocation { start: 0, end: 0 });
14//! assert!(matches!(node.kind, NodeKind::Empty));
15//! ```
16
17/// Re-exported AST node types used during Parse/Index/Analyze stages.
18pub use perl_ast::ast::*;