class Lit::Interpreter
- Lit::Interpreter
- Reference
- Object
Included Modules
Defined in:
lit/interpreter.crClass Method Summary
Instance Method Summary
-
#environment : Lit::Environment
TODO Exclude this after e2e tests
- #evaluate(expr : Expr) : Value
- #execute(stmt : Stmt) : Value
- #interpret(stmts) : Nil
- #visit_assign_expr(expr) : Value
- #visit_binary_expr(expr) : Value
- #visit_expression_stmt(stmt) : Nil
- #visit_grouping_expr(expr) : Value
- #visit_let_stmt(stmt) : Nil
- #visit_literal_expr(expr) : Value
- #visit_logical_expr(expr) : Value
- #visit_print_stmt(stmt) : Nil
- #visit_ternary_expr(expr) : Value
- #visit_unary_expr(expr) : Value
- #visit_variable_expr(expr) : Value