diff options
Diffstat (limited to 'dbg.d')
| -rw-r--r-- | dbg.d | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -8,8 +8,8 @@ import parser; //import dbg; //import value; -//bool DEBUG = true; -bool DEBUG = false; +bool DEBUG = true; +//bool DEBUG = false; bool REPL = false; @@ -231,6 +231,16 @@ int disassemble(Chunk chunk, int offset) { return simpleInstruction("OP_CONCAT", offset); case OpCode.OP_APPEND: return simpleInstruction("OP_APPEND", offset); + case OpCode.OP_PRINT: + return simpleInstruction("OP_PRINT", offset); + case OpCode.OP_MOST: + return simpleInstruction("OP_MOST", offset); + case OpCode.OP_LAST: + return simpleInstruction("OP_LAST", offset); + case OpCode.OP_REVERSE: + return simpleInstruction("OP_REVERSE", offset); + case OpCode.OP_EQUAL: + return simpleInstruction("OP_EQUAL", offset); default: writeln("unknown opcode?"); return offset + 1; |
