renames Typed to Vm
This commit is contained in:
@ -9,7 +9,7 @@ module BenchTests
|
||||
def setup
|
||||
@stdout = ""
|
||||
@machine = Register.machine.boot
|
||||
# Typed::Compiler.load_parfait
|
||||
# Vm::Compiler.load_parfait
|
||||
# most interesting parts saved as interger/word .soml in this dir
|
||||
end
|
||||
|
@ -5,7 +5,7 @@ class HelloTest < MiniTest::Test
|
||||
|
||||
def check
|
||||
machine = Register.machine.boot
|
||||
Typed.compile( @input )
|
||||
Vm.compile( @input )
|
||||
objects = Register::Collector.collect_space
|
||||
machine.translate_arm
|
||||
writer = Elf::ObjectWriter.new(machine , objects )
|
||||
|
@ -22,8 +22,8 @@ require 'salama'
|
||||
|
||||
module Compiling
|
||||
def clean_compile(clazz_name , method_name , args , statements)
|
||||
compiler = Typed::MethodCompiler.new.create_method(clazz_name,method_name,args ).init_method
|
||||
compiler.process( Typed.ast_to_code( statements ) )
|
||||
compiler = Vm::MethodCompiler.new.create_method(clazz_name,method_name,args ).init_method
|
||||
compiler.process( Vm.ast_to_code( statements ) )
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -8,7 +8,7 @@ module Register
|
||||
def setup
|
||||
Register.machine.boot
|
||||
do_clean_compile
|
||||
Typed.compile( @input )
|
||||
Vm.compile( @input )
|
||||
Collector.collect_space
|
||||
@interpreter = Interpreter.new
|
||||
@interpreter.start Register.machine.init
|
||||
|
@ -8,4 +8,4 @@ require_relative "melon/test_all"
|
||||
|
||||
require_relative "register/test_all"
|
||||
|
||||
require_relative "typed/test_all"
|
||||
require_relative "vm/test_all"
|
||||
|
@ -5,8 +5,8 @@ module Register
|
||||
|
||||
def check
|
||||
Register.machine.boot unless Register.machine.booted
|
||||
compiler = Typed::MethodCompiler.new Parfait.object_space.get_main
|
||||
code = Typed.ast_to_code @input
|
||||
compiler = Vm::MethodCompiler.new Parfait.object_space.get_main
|
||||
code = Vm.ast_to_code @input
|
||||
assert code.to_s , @input
|
||||
produced = compiler.process( code )
|
||||
assert @output , "No output given"
|
||||
@ -37,8 +37,8 @@ module Register
|
||||
end
|
||||
def check_nil
|
||||
assert @expect , "No output given"
|
||||
compiler = Typed::MethodCompiler.new
|
||||
code = Typed.ast_to_code( @input )
|
||||
compiler = Vm::MethodCompiler.new
|
||||
code = Vm.ast_to_code( @input )
|
||||
assert code.to_s , @input
|
||||
produced = compiler.process( code )
|
||||
produced = Parfait.object_space.get_main.instructions
|
@ -4,8 +4,8 @@ class ToCodeTest < MiniTest::Test
|
||||
include AST::Sexp
|
||||
|
||||
def check clazz
|
||||
tree = Typed.ast_to_code @statement
|
||||
assert_equal tree.class , Typed::Tree.const_get( clazz )
|
||||
tree = Vm.ast_to_code @statement
|
||||
assert_equal tree.class , Vm::Tree.const_get( clazz )
|
||||
end
|
||||
|
||||
def test_field_access
|
Reference in New Issue
Block a user