summaryrefslogtreecommitdiff
path: root/dis.c
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-06-20 21:45:57 +0100
committerubq323 <ubq323@ubq323.website>2024-06-20 21:45:57 +0100
commitfa8891ffe017ae890f0ef07915cf8b52acd7304a (patch)
tree7478faee1981c1c98ee5e88e6c56529f83a64817 /dis.c
parent9a7d1b1d41f4b3bb3387e7bbe77105d0089803d0 (diff)
add true, false, nil keywords
Diffstat (limited to 'dis.c')
-rw-r--r--dis.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dis.c b/dis.c
index 0fb23f8..c4492df 100644
--- a/dis.c
+++ b/dis.c
@@ -44,6 +44,10 @@ void disasm_chunk(Chunk *ch) {
SIMPLE_INSTR(OP_SUB, "sub")
SIMPLE_INSTR(OP_MUL, "mul")
SIMPLE_INSTR(OP_DIV, "div")
+ SIMPLE_INSTR(OP_NIL, "nil")
+ SIMPLE_INSTR(OP_TRUE, "true")
+ SIMPLE_INSTR(OP_FALSE, "false")
+
}
}
#undef SIMPLE_INSTR