rubyx/lib/vool/statements/statements.rb

20 lines
381 B
Ruby
Raw Normal View History

2017-04-01 20:28:57 +02:00
module Vool
class Statements < Statement
include Common::Statements
# create machine instructions
def to_mom( method )
2017-09-06 11:51:24 +02:00
all = @statements.collect { |statement| statement.to_mom( method ) }
Mom::Statements.new(all)
2017-04-08 11:10:42 +02:00
end
2017-04-09 09:14:28 +02:00
def create_objects
@statements.each{ |s| s.create_objects }
end
end
class ScopeStatement < Statements
2017-04-01 20:28:57 +02:00
end
end