Sha256: 2607ae6f6645f3aeed5fbe2a5ed69330154f71726b170e4b3f738773d9e24bb1

Contents?: true

Size: 239 Bytes

Versions: 1

Compression:

Stored size: 239 Bytes

Contents

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

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

    def execute
      n = vm.vstack.pop
      console.printn 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/putn.rb