class Ven::Suite::Frame

Overview

A frame is simply some packed state. It is there to make statekeeping trivial for the Machine.

Defined in:

ven/suite/frame.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(goal : Ven::Suite::Frame::Goal = Goal::Unknown, stack : Array(Ven::Suite::MClass | Ven::Suite::MStruct) = Models.new, cp : Int32 = 0) #

[View source]

Instance Method Detail

def control : Array(Int32) #

[View source]
def control=(control : Array(Int32)) #

[View source]
def cp : Int32 #

Chunk pointer, a reference to the chunk this frame executes.


[View source]
def cp=(cp : Int32) #

Chunk pointer, a reference to the chunk this frame executes.


[View source]
def dies : Int32 | Nil #

The instruction pointer to jump to if there was a death in or under this frame.


[View source]
def dies=(dies : Int32 | Nil) #

The instruction pointer to jump to if there was a death in or under this frame.


[View source]
def goal : Goal #

[View source]
def ip : Int32 #

[View source]
def ip=(ip : Int32) #

[View source]
def last(*args, **options) #

[View source]
def last(*args, **options, &) #

[View source]
def last?(*args, **options) #

[View source]
def last?(*args, **options, &) #

[View source]
def returns : Model | Nil #

The model that will be returned if everything goes according to plan.


[View source]
def returns=(returns : Model | Nil) #

The model that will be returned if everything goes according to plan.


[View source]
def stack : Models #

[View source]
def stack=(stack : Models) #

[View source]
def to_s(io) #

[View source]
def underscores : Array(Ven::Suite::MClass | Ven::Suite::MStruct) #

[View source]
def underscores=(underscores : Array(Ven::Suite::MClass | Ven::Suite::MStruct)) #

[View source]