constructor, for instruction + args + comment
constructor, for label + instruction
postblit
Reads statement from string
arguments, if any. These are ignored if instName.length == 0
comment, if any
instruction name
label, if any, otherwise, null or empty string
Statement s; s.fromString("someLabel: someInst arg1 arg2#comment"); assert(s == Statement("someLabel", "someInst", ["arg1", "arg2"])); s.fromString("someInst arg1 # comment"); assert(s == Statement("someInst", ["arg1"]), s.toString); s.fromString("load 0"); assert(s == Statement("load", ["0"]));
To store a single line of bytecode. This is used for raw bytecode.