Skip to main content

Module ast

Module ast 

Source
Expand description

Abstract Syntax Tree (AST) definitions for Perl parsing. AST facade for the core parser engine.

This module re-exports AST node definitions from perl-ast and anchors them in the parser engine for the Parse → Index → Navigate → Complete → Analyze workflow used by LSP providers and workspace tooling.

§Usage Example

use perl_parser_core::engine::ast::{Node, NodeKind};
use perl_parser_core::SourceLocation;

let node = Node::new(NodeKind::Empty, SourceLocation { start: 0, end: 0 });
assert!(matches!(node.kind, NodeKind::Empty));

Structs§

Node
Re-exported AST node types used during Parse/Index/Analyze stages. Core AST node representing any Perl language construct within parsing workflows.
Token
Re-exported AST node types used during Parse/Index/Analyze stages. Token produced by the lexer and consumed by the parser.

Enums§

NodeKind
Re-exported AST node types used during Parse/Index/Analyze stages. Comprehensive enumeration of all Perl language constructs supported by the parser.
TokenKind
Re-exported AST node types used during Parse/Index/Analyze stages. Token classification for Perl parsing.

Type Aliases§

SourceLocation
Re-exported AST node types used during Parse/Index/Analyze stages. Type alias for backward compatibility with SourceLocation.