class

Sheety::AstBuilder

Inherits Reference < Object

Builds an Abstract Syntax Tree (AST) from tokens

Constructors

Instance methods

append(token : Token) : Nil

Append a token and build AST node

Source
append(node : AST::Node) : Nil

Append an AST node directly

Source
finish
Source
node_stack

Stack of AST nodes being built

Source
node_stack=(node_stack : Array(AST::Node))

Stack of AST nodes being built

Source
root

Get the root AST node

Source