start on class compiler
idea is to get cleaner layer seperation reduce machine and rework builtin boot
This commit is contained in:
@ -24,12 +24,12 @@ module Vool
|
||||
|
||||
def to_mom( _ )
|
||||
create_class_object
|
||||
mom = []
|
||||
methods = []
|
||||
body.statements.each do |node|
|
||||
raise "Only methods for now #{node}" unless node.is_a?(MethodStatement)
|
||||
mom << node.to_mom(@clazz)
|
||||
methods << node.to_mom(@clazz)
|
||||
end
|
||||
mom
|
||||
Mom::ClassCompiler.new(@clazz , methods)
|
||||
end
|
||||
|
||||
def each(&block)
|
||||
|
Reference in New Issue
Block a user