Sha256: 3e5df794c76414af019145a6ed8e13a209d9f1e9ded5a7c0208a115bda9d5845

Contents?: true

Size: 173 Bytes

Versions: 5

Compression:

Stored size: 173 Bytes

Contents

module Hesabu
  module Types
    IdentifierLit = Struct.new(:var_identifier, :bindings) do
      def eval
        bindings[var_identifier] ||= 0
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hesabu-0.1.5 lib/hesabu/types/indentifier_lit.rb
hesabu-0.1.4 lib/hesabu/types/indentifier_lit.rb
hesabu-0.1.3 lib/hesabu/types/indentifier_lit.rb
hesabu-0.1.2 lib/hesabu/types/indentifier_lit.rb
hesabu-0.1.1 lib/hesabu/types/indentifier_lit.rb