class

Interpreter

Inherits Reference < Object

Constructors

new(instructions : Array(Instruction))
Source

Instance methods

instructions

The list of instructions to be interpreted.

Source
instructions=(instructions : Array(Instruction))

The list of instructions to be interpreted.

Source
stack

The 'stack' in our Stack Machine.

Source
stack=(stack : Array(Float64))

The 'stack' in our Stack Machine.

Source
variables

A table of variables and their current values.

Source
variables=(variables : Hash(String, Float64))

A table of variables and their current values.

Source