2019-10-04 17:38:51 +03:00
|
|
|
require_relative "../helper"
|
|
|
|
|
|
|
|
module SlotLanguage
|
|
|
|
module SlotHelper
|
|
|
|
def compile(input)
|
|
|
|
SlotCompiler.compile(input)
|
|
|
|
end
|
|
|
|
def compile_class(input)
|
2019-10-05 14:49:45 +03:00
|
|
|
compile(input).class
|
2019-10-04 17:38:51 +03:00
|
|
|
end
|
|
|
|
end
|
2019-10-06 19:49:53 +03:00
|
|
|
module SlotToHelper
|
|
|
|
def setup
|
|
|
|
Parfait.boot!({})
|
|
|
|
@compiler = SlotMachine::SlotCollection.compiler_for( :Space , :main,{},{})
|
|
|
|
end
|
|
|
|
end
|
2019-10-04 17:38:51 +03:00
|
|
|
end
|