fix use of slot_constant vs slot_move

wip
This commit is contained in:
Torsten Ruger
2017-09-10 12:57:25 +03:00
parent a523af14f1
commit 66901eeb5b
14 changed files with 43 additions and 24 deletions

View File

@ -39,6 +39,12 @@ module Mom
# @left: See SlotLoad, and array of symbols
# @right: A Constant from parse, ie an instance of classes in basc_value, like TrueStatement
class SlotConstant < SlotLoad
def initialize(left , right)
super
raise "right not constant, #{right}" unless right.is_a? Vool::ConstantStatement
end
end
class SlotMove < SlotLoad