rearranges test helper modules

This commit is contained in:
Torsten Ruger
2017-04-10 16:12:15 +03:00
parent 0233e91355
commit 0d96f5e35f
8 changed files with 111 additions and 99 deletions

View File

@ -1,18 +1 @@
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