Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Store<T>

Maps string-typed addresses to physical values manipulated by the machine.

Type parameters

  • T

    The underlying TypeScript type forming the basis of values in the language.

Hierarchy

  • Store

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Store<T>(store?: {}): Store<T>

Properties

Protected store

store: {} = {}

Type declaration

Methods

bind

  • Bind a value to an address.

    Parameters

    • addr: string

      The address to bind to.

    • value: Value<T>

      The Value we are binding.

    Returns Store<T>

    This store with the new binding.

lookup

  • lookup(addr: string): Value<T>
  • Lookup the Value bound to a given address.

    throws

    Error If the given address does not contain a value.

    Parameters

    • addr: string

      The string-typed address.

    Returns Value<T>

    The value located at the address.

Generated using TypeDoc