Skip to main content

Module ast

Module ast 

Source
Expand description

Abstract Syntax Tree (AST) node definitions.

§Pipeline position

source -> Lexer -> [Token] -> Parser -> [Statement] -> Checker -> Evaluator

§Module layout

Modules§

arena
Generic index-based arena for AST nodes.
nodes
Expression AST nodes.
statements
Statement AST nodes, type annotations, and parameter definitions.

Structs§

Ast
Owns every Expression allocated during a single parse/resolve/eval session. Statement stays Box-owned for now - this migrates the leaf/expression side first, on its own, before statements follow.

Functions§

remap_expr_kind 🔒
remap_id 🔒
remap_stmt_kind 🔒
remap_stmts 🔒

Type Aliases§

ExprId
Handle to an Expression living in Ast::exprs.
ScopeMap