rename phisol to soml
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
require_relative '../../helper'
|
||||
require 'parslet/convenience'
|
||||
|
||||
Phisol::Compiler.class_eval do
|
||||
Soml::Compiler.class_eval do
|
||||
def set_main main
|
||||
@clazz = Register.machine.space.get_class_by_name :Object
|
||||
@method = main
|
||||
@ -21,7 +21,7 @@ module CompilerHelper
|
||||
syntax = parser.parse_with_debug(@string_input)
|
||||
parts = Parser::Transform.new.apply(syntax)
|
||||
#puts parts.inspect
|
||||
compiler = Phisol::Compiler.new
|
||||
compiler = Soml::Compiler.new
|
||||
set_main(compiler)
|
||||
produced = compiler.process( parts )
|
||||
assert @output , "No output given"
|
||||
|
@ -18,7 +18,7 @@ class AddTest < MiniTest::Test
|
||||
s(:int, 5),
|
||||
s(:int, 7)))))))
|
||||
|
||||
Phisol::Compiler.compile( code )
|
||||
Soml::Compiler.compile( code )
|
||||
machine.collect
|
||||
@interpreter = Interpreter::Interpreter.new
|
||||
@interpreter.start Register.machine.init
|
||||
|
@ -24,10 +24,10 @@ HERE
|
||||
syntax = Parser::Salama.new.parse_with_debug(@string_input)
|
||||
parts = Parser::Transform.new.apply(syntax)
|
||||
#puts parts.inspect
|
||||
Phisol::Compiler.compile( parts )
|
||||
Soml::Compiler.compile( parts )
|
||||
machine.collect
|
||||
# statements = Register.machine.boot.parse_and_compile @string_input
|
||||
# Phisol::Compiler.compile( statements , Register.machine.space.get_main )
|
||||
# Soml::Compiler.compile( statements , Register.machine.space.get_main )
|
||||
@interpreter = Interpreter::Interpreter.new
|
||||
@interpreter.start Register.machine.init
|
||||
#show_ticks # get output of what is
|
||||
|
@ -52,10 +52,10 @@ HERE
|
||||
syntax = Parser::Salama.new.parse_with_debug(@string_input)
|
||||
parts = Parser::Transform.new.apply(syntax)
|
||||
#puts parts.inspect
|
||||
Phisol::Compiler.compile( parts )
|
||||
Soml::Compiler.compile( parts )
|
||||
machine.collect
|
||||
# statements = Register.machine.boot.parse_and_compile @string_input
|
||||
# Phisol::Compiler.compile( statements , Register.machine.space.get_main )
|
||||
# Soml::Compiler.compile( statements , Register.machine.space.get_main )
|
||||
@interpreter = Interpreter::Interpreter.new
|
||||
@interpreter.start Register.machine.init
|
||||
#show_ticks # get output of what is
|
||||
|
@ -18,7 +18,7 @@ class TestPuts < MiniTest::Test
|
||||
s(:receiver,
|
||||
s(:string, "Hello again")))))))
|
||||
|
||||
Phisol::Compiler.compile( code )
|
||||
Soml::Compiler.compile( code )
|
||||
machine.collect
|
||||
@interpreter = Interpreter::Interpreter.new
|
||||
@interpreter.start Register.machine.init
|
||||
|
Reference in New Issue
Block a user