use module compile function
This commit is contained in:
parent
e6743c7216
commit
5d3aace459
@ -18,7 +18,7 @@ class AddTest < MiniTest::Test
|
||||
s(:int, 5),
|
||||
s(:int, 7)))))))
|
||||
|
||||
Soml::Compiler.compile( code )
|
||||
Soml.compile( code )
|
||||
machine.collect
|
||||
@interpreter = Interpreter::Interpreter.new
|
||||
@interpreter.start Register.machine.init
|
||||
|
@ -24,7 +24,7 @@ HERE
|
||||
syntax = Parser::Salama.new.parse_with_debug(@string_input)
|
||||
parts = Parser::Transform.new.apply(syntax)
|
||||
#puts parts.inspect
|
||||
Soml::Compiler.compile( parts )
|
||||
Soml.compile( parts )
|
||||
machine.collect
|
||||
# statements = Register.machine.boot.parse_and_compile @string_input
|
||||
# Soml::Compiler.compile( statements , Register.machine.space.get_main )
|
||||
|
@ -52,7 +52,7 @@ HERE
|
||||
syntax = Parser::Salama.new.parse_with_debug(@string_input)
|
||||
parts = Parser::Transform.new.apply(syntax)
|
||||
#puts parts.inspect
|
||||
Soml::Compiler.compile( parts )
|
||||
Soml.compile( parts )
|
||||
machine.collect
|
||||
# statements = Register.machine.boot.parse_and_compile @string_input
|
||||
# Soml::Compiler.compile( statements , Register.machine.space.get_main )
|
||||
|
@ -18,7 +18,7 @@ class TestPuts < MiniTest::Test
|
||||
s(:receiver,
|
||||
s(:string, "Hello again")))))))
|
||||
|
||||
Soml::Compiler.compile( code )
|
||||
Soml.compile( code )
|
||||
machine.collect
|
||||
@interpreter = Interpreter::Interpreter.new
|
||||
@interpreter.start Register.machine.init
|
||||
|
Loading…
Reference in New Issue
Block a user