replace fake compiler with real

less room for error
This commit is contained in:
2020-02-28 12:54:17 +02:00
parent 393f0d9a60
commit 887d7b9bbb
10 changed files with 66 additions and 67 deletions

View File

@ -7,6 +7,9 @@ module Risc
:fake_name
end
end
def self.test_compiler(label = SlotMachine::Label.new("start","start_label"))
CallableCompiler.new( FakeCallable.new , label)
end
class FakeCompiler
attr_reader :instructions
def initialize