Skip to main content

Crate cyrs_ast

Crate cyrs_ast 

Source
Expand description

cyrs-ast — typed AST wrappers over the CST (spec 0001 §5).

AST nodes are zero-cost wrappers around cyrs_syntax::SyntaxNode. A node’s methods navigate the underlying tree; no duplication, no allocation. Per §5.2, the bulk of wrappers is generated from a grammar description by a dev-only xtask; the output lives in the checked-in generated module and is regenerated by cargo xtask codegen.

Re-exports§

pub use generated::*;

Modules§

generated

Structs§

MapProjectionItem
Typed wrapper for one item inside a MapProjection.

Enums§

MapProjectionItemKind
The four shapes a map-projection item can take.

Traits§

AstNode
Trait every typed AST wrapper conforms to. Modelled after the rust-analyzer AstNode pattern. The generated module emits plain cast/syntax methods directly (matching the spec §5.1 shape); this trait is the portable handle hand-written or macro-based wrappers use.