mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-05-05 16:30:17 +10:00
Implemented the following attributes:
* String.length * String.asUpper * String.asLower * array.length * array.pushBack(x) * array.popBack() The remaining attributes are listed in 'toy_attributes.h'
This commit is contained in:
@@ -186,6 +186,10 @@ int inspect_instruction(unsigned char* bytecode, unsigned int pc, unsigned int j
|
||||
bytecode[pc + 2]);
|
||||
return 4;
|
||||
|
||||
case TOY_OPCODE_ATTRIBUTE:
|
||||
printf(MARKER "ATTRIBUTE (accessed from a compound)\n", MARKER_VALUE(pc, unsigned char));
|
||||
return 4;
|
||||
|
||||
case TOY_OPCODE_DUPLICATE:
|
||||
printf(MARKER "DUPLICATE %s\n", MARKER_VALUE(pc, unsigned char), bytecode[pc + 1] ? "and ACCESS" : "");
|
||||
return 4;
|
||||
|
||||
Reference in New Issue
Block a user