starting to_risc descent

just fleshing it for now
This commit is contained in:
Torsten Ruger
2018-03-13 16:16:06 +05:30
parent b297650b78
commit 96800fd8fd
13 changed files with 245 additions and 25 deletions

View File

@ -18,7 +18,7 @@ module Risc
@source = source
@next = nekst
return unless source
raise "Source must be string or ast node, not #{source.class}" unless source.is_a?(String) or source.is_a?(Vm::Code)
raise "Source must be string or ast node, not #{source.class}" unless source.is_a?(String) or source.is_a?(Mom::Instruction)
end
attr_reader :source