Expand description
AST-to-instruction compiler.
Transforms an EvalTree into an
ExpressionEvaluator by generating
a sequence of Instrs.
The compiler walks the tree in post-order, assigning stack slots and emitting instructions for each node.
Functionsยง
- compile_
atom - Compile an
Atominto anExpressionEvaluator. - compile_
atom_ with - Compile an
Atominto anExpressionEvaluatorwith a function map. - compile_
atoms_ multi - Compile multiple
Atoms into a single multi-outputExpressionEvaluator, sharing constants, CSE, and stack slots across all outputs. - compile_
atoms_ multi_ with - Compile multiple
Atoms with a function map into a single multi-outputExpressionEvaluator. - compile_
tree - Compile an
EvalTreeinto anExpressionEvaluator. - compile_
tree_ with - Compile an
EvalTreewith an optional function map. - compile_
trees_ multi - Compile multiple
EvalTrees into a single multi-outputExpressionEvaluator.