navm.bytecode

Undocumented in source.

Members

Enums

Instruction (from navm.bytecodedefs)
enum Instruction via public import navm.bytecodedefs : Instruction;

stores an instruction

Functions

instructionPopCount (from navm.bytecodedefs)
uinteger instructionPopCount(Instruction inst, NaData[] arguments) via public import navm.bytecodedefs : instructionPopCount;
readByteCode
NaFunction[] readByteCode(string[] input)

Reads a string[] into NaFunction[]

removeWhitespace
string[] removeWhitespace(string[] input)

Removes whitespace from multiple strings. IF a string is whitespace only, its excluded from output

Static variables

INSTRUCTION_ARG_COUNT (from navm.bytecodedefs)
ubyte[Instruction] INSTRUCTION_ARG_COUNT; via public import navm.bytecodedefs : INSTRUCTION_ARG_COUNT;

stores number of arguments an instruction needs

INSTRUCTION_PUSH_COUNT (from navm.bytecodedefs)
ubyte[Instruction] INSTRUCTION_PUSH_COUNT; via public import navm.bytecodedefs : INSTRUCTION_PUSH_COUNT;

stores how many elements an instruction will push to stack

Structs

NaFunction (from navm.bytecodedefs)
struct NaFunction via public import navm.bytecodedefs : NaFunction;

Stores a byte code function (the instructions plus their arguments)

Meta