Sha256: 28016c1dc59b0584f04f8b7b49fe3a97b6bd84f0a8f1303b6fd3dd46799bed50

Contents?: true

Size: 333 Bytes

Versions: 1

Compression:

Stored size: 333 Bytes

Contents

# frozen_string_literal: true

module Tataru
  # memory that can be manipulated by instructions
  class Memory
    attr_accessor :program_counter, :hash, :call_stack, :error, :end

    def initialize
      @program_counter = 0
      @hash = { temp: {} }
      @error = nil
      @call_stack = []
      @end = false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tataru-0.2.0 lib/tataru/memory.rb