use module compile function

This commit is contained in:
Torsten Ruger 2015-10-28 21:40:22 +02:00
parent e6743c7216
commit 5d3aace459
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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 )

View File

@ -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 )

View File

@ -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