moved interpreter in salama

This commit is contained in:
Torsten Ruger 2015-07-30 19:23:25 +03:00
parent 33b0260bfb
commit ba8768e374

View File

@ -1,6 +1,6 @@
# By default Volt generates this controller for your Main component # By default Volt generates this controller for your Main component
require "salama" require "salama"
require "interpreter" require "interpreter/interpreter"
module Main module Main
@ -42,7 +42,7 @@ module Main
code = Ast::ExpressionList.new( [Ast::CallSiteExpression.new(:putstring, [] ,Ast::StringExpression.new("Hello again"))]) code = Ast::ExpressionList.new( [Ast::CallSiteExpression.new(:putstring, [] ,Ast::StringExpression.new("Hello again"))])
Virtual::Compiler.compile( code , machine.space.get_main ) Virtual::Compiler.compile( code , machine.space.get_main )
machine.run_before "Register::CallImplementation" machine.run_before "Register::CallImplementation"
@interpreter = Interpreter.new @interpreter = Interpreter::Interpreter.new
page._interpreter = { } page._interpreter = { }
update_interpreter update_interpreter
@interpreter.start machine.init @interpreter.start machine.init