class

Lox::Chunk

Inherits Reference < Object

Constructors

Instance methods

add_constant!(constant : Lox::Value) : Byte

Adds a constant to the constant pool and returns the index it got written to, so the caller can retrieve it when needed.

Source
bytes
Source
constants
Source
disassemble

Returns a representation where the chunk's bytes are broken up into instructions with their operands, correlated with line numbers.

Source
line_numbers
Source
write!(line : LineNumber, byte : Byte)
Source
write!(line : LineNumber, opcode : Opcode)
Source

Nested types