Skip to main content

Module ast

Module ast 

Source
Expand description

AST types: node/statement types and expression tree - data only, no logic.

Structs§

IfBranch
One branch of an <<if>> chain: condition AST + body statements.
LineVariant
A line variant inside a => line-group.
Node
A complete parsed node from a .bub script.
OptionItem
A single shortcut option.

Enums§

BinOp
Binary operator kinds.
Expr
A node in the expression AST.
Stmt
A statement in a node body.
TextSegment
One segment of text that may contain {expr} fragments or inline markup.
UnOp
Unary operator kinds.

Type Aliases§

StmtList
A shared, read-only slice of Stmts used for every body throughout the AST (node bodies, if branches, once bodies, option bodies, line groups).