rubyx/test/melon/compiler/helper.rb
2017-01-12 20:38:04 +02:00

14 lines
241 B
Ruby

require_relative '../helper'
module Melon
module CompilerHelper
def in_Space(statements)
"class Space ; #{statements} ; end"
end
def as_main(statements)
in_Space("def main ; #{statements}; end")
end
end
end