SlotLanguage reborn in the Machine
Just added the compiler, that can parse Slot directly into SlotMachine code (no language layer in between) Still unclear wheather the Maker is a thing, but since it was in the Language layer i did not remove it (yet) Otherwise just the compiler and all the tests, moved from the slot_language.
This commit is contained in:
@@ -6,4 +6,18 @@ module SlotMachine
|
||||
super("mocking")
|
||||
end
|
||||
end
|
||||
module SlotHelper
|
||||
def compile(input)
|
||||
SlotCompiler.compile(input)
|
||||
end
|
||||
def compile_class(input)
|
||||
compile(input).class
|
||||
end
|
||||
end
|
||||
module SlotToHelper
|
||||
def setup
|
||||
Parfait.boot!({})
|
||||
@compiler = SlotMachine::SlotCollection.compiler_for( :Space , :main,{},{})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user