moved interpreter in salama
This commit is contained in:
parent
33b0260bfb
commit
ba8768e374
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user