From 6fd244cb04cf1972e9d7dcc5635bf5cfe8194402 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Fri, 22 Oct 2021 13:38:52 +0200 Subject: Add more keyword token types --- src/bytecode/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/bytecode/main.c') 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) { return; } + for (size_t i = 0; i < array_size(tokens); i++) { + print_token(tokens[i]); + } + size_t const_a = add_constant(vm.chunk, 7); add_code(vm.chunk, OP_CONSTANT, 1, 1); add_code(vm.chunk, const_a, 1, 1); -- cgit v1.2.1