struct Ven::Suite::Instruction

Overview

A bytecode instruction.

A bytecode instruction may accept an argument, which must be either a Label or an integer. What this integer means is not of Instruction's concern.

Defined in:

ven/suite/instruction.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(opcode : Ven::Suite::Opcode, argument : Int32 | Nil, line : Int32) #

[View source]
def self.new(opcode : Ven::Suite::Opcode, label : Label, line : Int32) #

[View source]

Instance Method Detail

def argument : Int32 | Nil #

[View source]
def label : Label | Nil #

[View source]
def line : Int32 #

[View source]
def opcode : Opcode #

[View source]
def to_s(io) #

[View source]