#include <chunk.h>
Public Member Functions | |
unsigned | AddConstant (Value constant) |
void | Write (uint8_t instruction) |
void | Disassemble (const std::string &name) const |
unsigned | DisassembleInstruction (unsigned index) const |
Public Attributes | |
std::string | source |
std::vector< uint8_t > | code |
std::vector< Value > | constants |
unsigned uscript::Chunk::AddConstant | ( | uscript::Value | constant | ) |
void uscript::Chunk::Disassemble | ( | const std::string & | name | ) | const |
Definition at line 15 of file chunk.cc.
unsigned uscript::Chunk::DisassembleInstruction | ( | unsigned | index | ) | const |
Definition at line 47 of file chunk.cc.