rubyx/test/vool/helper.rb
2017-04-08 12:11:52 +03:00

19 lines
319 B
Ruby

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