tsz_parser/lib.rs
1//! TypeScript parser and AST types for the tsz compiler.
2//!
3//! This crate provides:
4//! - AST node types and `NodeArena` for cache-optimized storage
5//! - `ParserState` - Recursive descent parser
6//! - Syntax utilities for AST manipulation
7
8pub mod parser;
9
10// Syntax utilities - Shared helpers for AST and transforms
11pub mod syntax;
12
13// Re-export key parser types at crate root for convenience
14pub use parser::base::{NodeIndex, NodeList, TextRange};
15pub use parser::flags::{modifier_flags, node_flags, transform_flags};
16pub use parser::node::NodeArena;
17pub use parser::state::{ParseDiagnostic, ParserState};
18pub use parser::syntax_kind_ext;