package mantra.compiler

Interpreter

CLASS public class

Dynamic tree-walking VM evaluating AST nodes directly using hierarchical execution frames.

🏗️ Constructor Summary

Constructor Signature
def __init__(self)

⚙️ Method Summary

Modifier & Return Type Method Signature Description
Result execute_program(program: Program) Runs program directly.

🔍 Detailed Method Specifications

pub def execute_program(program: Program) -> Result
Runs program directly.

💡 Example Usage

interpreter_example.mantra
let vm = Interpreter()
vm.execute_program(program)