aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode/main.c
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-10-22 13:38:52 +0200
committerBad Diode <bd@badd10de.dev>2021-10-22 13:38:52 +0200
commit6fd244cb04cf1972e9d7dcc5635bf5cfe8194402 (patch)
tree3ebd4788679a49787a0dc87ec1b66ef89255f34d /src/bytecode/main.c
parent3b136ffdebf135cc0d285573edd7bdfefb99bb00 (diff)
downloadbdl-6fd244cb04cf1972e9d7dcc5635bf5cfe8194402.tar.gz
bdl-6fd244cb04cf1972e9d7dcc5635bf5cfe8194402.zip
Add more keyword token types
Diffstat (limited to 'src/bytecode/main.c')
-rw-r--r--src/bytecode/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bytecode/main.c b/src/bytecode/main.c
index 66089c0..5661747 100644
--- a/src/bytecode/main.c
+++ b/src/bytecode/main.c
@@ -38,6 +38,10 @@ process_source(const StringView *source) {
38 return; 38 return;
39 } 39 }
40 40
41 for (size_t i = 0; i < array_size(tokens); i++) {
42 print_token(tokens[i]);
43 }
44
41 size_t const_a = add_constant(vm.chunk, 7); 45 size_t const_a = add_constant(vm.chunk, 7);
42 add_code(vm.chunk, OP_CONSTANT, 1, 1); 46 add_code(vm.chunk, OP_CONSTANT, 1, 1);
43 add_code(vm.chunk, const_a, 1, 1); 47 add_code(vm.chunk, const_a, 1, 1);