rubyx/lib/virtual/instructions/branch.rb
2015-05-06 08:55:14 +03:00

15 lines
291 B
Ruby

module Virtual
# a branch must branch to a block. This is an abstract class, names indicate the actual test
class Branch < Instruction
def initialize to
@to = to
end
attr_reader :to
end
end
require_relative "is_true_branch"
require_relative "unconditional_branch"