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