adds ivar collection with tests
This commit is contained in:
18
test/vool/helper.rb
Normal file
18
test/vool/helper.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
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
|
Reference in New Issue
Block a user