class Interpreter

Defined in:

interpreter.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(instructions : Array(Instruction)) #

[View source]

Instance Method Detail

def instructions : Array(Instruction) #

The list of instructions to be interpreted.


[View source]
def instructions=(instructions : Array(Instruction)) #

The list of instructions to be interpreted.


[View source]
def run #

[View source]
def stack : Array(Float64) #

The 'stack' in our Stack Machine.


[View source]
def stack=(stack : Array(Float64)) #

The 'stack' in our Stack Machine.


[View source]
def variables : Hash(String, Float64) #

A table of variables and their current values.


[View source]
def variables=(variables : Hash(String, Float64)) #

A table of variables and their current values.


[View source]