class Cryox::Interpreter

Included Modules

Defined in:

cryox/interpreter.cr

Constructors

Instance Method Summary

Instance methods inherited from module Cryox::Stmt::Visitor

visit_block_stmt(stmt : Block) visit_block_stmt, visit_expression_stmt(stmt : Expression) visit_expression_stmt, visit_if_stmt(stmt : If) visit_if_stmt, visit_print_stmt(stmt : Print) visit_print_stmt, visit_var_stmt(stmt : Var) visit_var_stmt, visit_while_stmt(stmt : While) visit_while_stmt

Instance methods inherited from module Cryox::Expr::Visitor

visit_assign_expr(expr : Assign) visit_assign_expr, visit_binary_expr(expr : Binary) visit_binary_expr, visit_grouping_expr(expr : Grouping) visit_grouping_expr, visit_literal_expr(expr : Literal) visit_literal_expr, visit_logical_expr(expr : Logical) visit_logical_expr, visit_unary_expr(expr : Unary) visit_unary_expr, visit_variable_expr(expr : Variable) visit_variable_expr

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def environment : Environment #

[View source]
def environment? : Environment | Nil #

[View source]
def interpret(statements : Array(Stmt)) : Nil #

[View source]
def visit_assign_expr(expr : Expr::Assign) : LoxObj #

[View source]
def visit_binary_expr(expr : Expr::Binary) : LoxObj #

[View source]
def visit_block_stmt(stmt : Stmt::Block) : Nil #

[View source]
def visit_expression_stmt(stmt : Stmt::Expression) : Nil #

[View source]
def visit_grouping_expr(expr : Expr::Grouping) : LoxObj #

[View source]
def visit_if_stmt(stmt : Stmt::If) : Nil #

[View source]
def visit_literal_expr(expr : Expr::Literal) : LoxObj #

[View source]
def visit_logical_expr(expr : Expr::Logical) : LoxObj #

[View source]
def visit_print_stmt(stmt : Stmt::Print) : Nil #

[View source]
def visit_unary_expr(expr : Expr::Unary) : LoxObj #

[View source]
def visit_var_stmt(stmt : Stmt::Var) : Nil #

[View source]
def visit_variable_expr(expr : Expr::Variable) : LoxObj #

[View source]
def visit_while_stmt(stmt : Stmt::While) : Nil #

[View source]