renames compiler to method_compiler

This commit is contained in:
Torsten Ruger
2016-12-18 14:15:19 +02:00
parent 272f99daf7
commit 756cb52a98
22 changed files with 15 additions and 15 deletions

View File

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

View File

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

View File

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