Sha256: 7cf4b7eb9e0c38b75e7d9719d228baa8260475d3b161679e5b408f4d263a8edd

Contents?: true

Size: 239 Bytes

Versions: 1

Compression:

Stored size: 239 Bytes

Contents

module Whitespace::ISA
  class Putc < Instruction
    attr_reader :console

    def initialize(vm, console)
      super(vm)
      @console = console
    end

    def execute
      n = vm.vstack.pop
      console.printc n
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
whitespace-ruby-1.0.0 lib/whitespace/instructions/io/putc.rb