rename ClassCompiler to MomComplier

ended up not even using the class, it just came from there
It actually compiles methods, and it turns out is the point where builtin comes into the picture as it's boot process also returns method compilers
This commit is contained in:
Torsten Ruger
2018-07-01 21:26:45 +03:00
parent c947c27a14
commit bb49f1be78
5 changed files with 9 additions and 10 deletions

View File

@ -15,4 +15,4 @@ module Mom
end
require_relative "instruction/instruction.rb"
require_relative "class_compiler"
require_relative "mom_compiler"

View File

@ -1,10 +1,9 @@
module Mom
class ClassCompiler
class MomCompiler
attr_reader :clazz , :method_compilers
def initialize(clazz , compilers)
@clazz = clazz
@method_compilers = compilers
def initialize(compilers = [])
@method_compilers = Builtin.boot_functions + compilers
end
# Translate code to whatever cpu is specified.