class Crystush2d::Program

Defined in:

crystush2d/program.cr

Constant Summary

INSTRUCTIONS = Crystush::Program::INSTRUCTIONS.concat(["POINT.DUP", "POINT.FROMFLOATS"])

Constructors

Instance Method Summary

Constructor Detail

def self.new(program : String) #

[View source]

Instance Method Detail

def evaluate(stacks : Crystush2d::PushStacks = Crystush2d::PushStacks.new) : Crystush2d::PushStacks #

[View source]
def execute_instruction(instruction : String, stacks : Crystush2d::PushStacks) #

[View source]
def execute_point_instruction(instruction : String, stacks : Crystush2d::PushStacks) #

[View source]