start on class compiler

idea is to get cleaner layer seperation
reduce machine and rework builtin boot
This commit is contained in:
Torsten Ruger
2018-06-30 19:20:17 +03:00
parent 4a7cc72732
commit daf1b56062
11 changed files with 51 additions and 12 deletions

10
lib/mom/class_compiler.rb Normal file
View File

@ -0,0 +1,10 @@
module Mom
class ClassCompiler
attr_reader :clazz , :methods
def initialize(clazz , methods)
@clazz = clazz
@methods = methods
end
end
end

View File

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