rubyx/lib/bosl/compiler/module_expression.rb
Torsten Ruger 5f628744d6 more test working
operator wip
2015-09-20 16:52:26 +03:00

19 lines
469 B
Ruby

module Bosl
Compiler.class_eval do
# module attr_reader :name ,:expressions
def on_module expression
return clazz
end
def on_class expression
#puts expression.inspect
name , derives , expressions = *expression
clazz = Parfait::Space.object_space.get_class_by_name! name
#puts "Compiling class #{clazz.name.inspect}"
expression_value = process_all(expressions).last
return expression_value
end
end
end