renames compiler to method_compiler
This commit is contained in:
@ -21,7 +21,7 @@ require 'salama'
|
||||
|
||||
module Compiling
|
||||
def clean_compile(clazz_name , method_name , args , statements)
|
||||
compiler = Typed::Compiler.new.create_method(clazz_name,method_name,args ).init_method
|
||||
compiler = Typed::MethodCompiler.new.create_method(clazz_name,method_name,args ).init_method
|
||||
compiler.process( Typed.ast_to_code( statements ) )
|
||||
end
|
||||
|
||||
|
@ -4,7 +4,7 @@ module ExpressionHelper
|
||||
|
||||
def check
|
||||
Register.machine.boot unless Register.machine.booted
|
||||
compiler = Typed::Compiler.new Register.machine.space.get_main
|
||||
compiler = Typed::MethodCompiler.new Register.machine.space.get_main
|
||||
code = Typed.ast_to_code @input
|
||||
produced = compiler.process( code )
|
||||
assert @output , "No output given"
|
||||
|
@ -12,7 +12,7 @@ module Statements
|
||||
|
||||
def check
|
||||
assert @expect , "No output given"
|
||||
compiler = Typed::Compiler.new
|
||||
compiler = Typed::MethodCompiler.new
|
||||
produced = compiler.process( Typed.ast_to_code( @input) )
|
||||
produced = Register.machine.space.get_main.instructions
|
||||
compare_instructions produced , @expect
|
||||
|
Reference in New Issue
Block a user