Copy risc compiler stuff to mom
Start to separate the layers. wip, just checkin in to see the following changes better
This commit is contained in:
@ -11,6 +11,7 @@ module Vool
|
||||
raise "not meta" unless clazz.class == Parfait::MetaClass
|
||||
raise( "no class in #{self}") unless clazz
|
||||
method = clazz.add_method_for(name , make_arg_type , make_frame , body )
|
||||
#VoolMethod
|
||||
compiler = method.compiler_for(clazz.instance_type)
|
||||
each {|node| raise "Blocks not implemented" if node.is_a?(BlockStatement)}
|
||||
compiler
|
||||
|
@ -29,7 +29,7 @@ module Vool
|
||||
raise "Only methods for now #{node.class}:#{node}"
|
||||
end
|
||||
end
|
||||
Mom::MomCompiler.new(method_compilers)
|
||||
Mom::MomCollection.new(method_compilers)
|
||||
end
|
||||
|
||||
def each(&block)
|
||||
|
Reference in New Issue
Block a user