struct CrystalRobots::Compiler::Program

Defined in:

compiler/compiler.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ast : Array(Array(Node)), pc : PC) #

def self.new #

Instance Method Detail

def <<(token : Node) #

def <<(tokens : Array(Node)) #

def [](i) #

def add_pass(tokens : Array(Node)) #

def arg(pc : PC, n : Int32) #

def arg(n : Int32) #

Program#arg(0) should return the first Node pointed to by the current Node


def ast : Array(Array(CrystalRobots::Compiler::Node)) #

def ast=(ast : Array(Array(CrystalRobots::Compiler::Node))) #

def inc(i : Int32) #

def inc #

def jump(pc : PC) #

def map(& : Array(Node) -> String) : Array(String) #

def next_pass #

def node(pc : PC) #

def node #



def size #

def start #

def test_pc(pc : PC) #