rename bosl to phisol
This commit is contained in:
@ -2,7 +2,7 @@ require_relative '../helper'
|
||||
require 'parslet/convenience'
|
||||
|
||||
|
||||
Bosl::Compiler.class_eval do
|
||||
Phisol::Compiler.class_eval do
|
||||
|
||||
def check
|
||||
Virtual.machine.boot.parse_and_compile @string_input
|
||||
|
@ -7,7 +7,7 @@ class CompilerTest < MiniTest::Test
|
||||
Virtual.machine.boot
|
||||
end
|
||||
def check
|
||||
res = Bosl::Compiler.compile( @expression )
|
||||
res = Phisol::Compiler.compile( @expression )
|
||||
assert res.is_a?(Virtual::Slot) , "compiler must compile to slot, not #{res.inspect}"
|
||||
end
|
||||
def test_function_expression
|
||||
|
@ -17,7 +17,7 @@ class AddTest < MiniTest::Test
|
||||
s(:name, :plus),
|
||||
s(:arguments , s(:int , 5)),
|
||||
s(:receiver, s(:int, 2)))))))
|
||||
Bosl::Compiler.compile( code )
|
||||
Phisol::Compiler.compile( code )
|
||||
Virtual.machine.run_before "Register::CallImplementation"
|
||||
@interpreter = Interpreter::Interpreter.new
|
||||
@interpreter.start Virtual.machine.init
|
||||
|
@ -51,10 +51,10 @@ HERE
|
||||
syntax = Parser::Salama.new.parse_with_debug(@string_input)
|
||||
parts = Parser::Transform.new.apply(syntax)
|
||||
puts parts.inspect
|
||||
Bosl::Compiler.compile( parts )
|
||||
Phisol::Compiler.compile( parts )
|
||||
|
||||
# expressions = Virtual.machine.boot.parse_and_compile @string_input
|
||||
# Bosl::Compiler.compile( expressions , Virtual.machine.space.get_main )
|
||||
# Phisol::Compiler.compile( expressions , Virtual.machine.space.get_main )
|
||||
Virtual.machine.run_before "Register::CallImplementation"
|
||||
@interpreter = Interpreter::Interpreter.new
|
||||
@interpreter.start Virtual.machine.init
|
||||
|
@ -18,7 +18,7 @@ class TestPuts < MiniTest::Test
|
||||
s(:receiver,
|
||||
s(:string, "Hello again")))))))
|
||||
|
||||
Bosl::Compiler.compile( code )
|
||||
Phisol::Compiler.compile( code )
|
||||
Virtual.machine.run_before "Register::CallImplementation"
|
||||
@interpreter = Interpreter::Interpreter.new
|
||||
@interpreter.start Virtual.machine.init
|
||||
|
Reference in New Issue
Block a user