From ba8768e374cc2484b2ce57b769b8c378d99d25b0 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Thu, 30 Jul 2015 19:23:25 +0300 Subject: [PATCH] moved interpreter in salama --- app/main/controllers/main_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main/controllers/main_controller.rb b/app/main/controllers/main_controller.rb index f890e7f..b8139fc 100644 --- a/app/main/controllers/main_controller.rb +++ b/app/main/controllers/main_controller.rb @@ -1,6 +1,6 @@ # By default Volt generates this controller for your Main component require "salama" -require "interpreter" +require "interpreter/interpreter" module Main @@ -42,7 +42,7 @@ module Main code = Ast::ExpressionList.new( [Ast::CallSiteExpression.new(:putstring, [] ,Ast::StringExpression.new("Hello again"))]) Virtual::Compiler.compile( code , machine.space.get_main ) machine.run_before "Register::CallImplementation" - @interpreter = Interpreter.new + @interpreter = Interpreter::Interpreter.new page._interpreter = { } update_interpreter @interpreter.start machine.init