summaryrefslogtreecommitdiff
path: root/src/voidc.cc
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-03-03 07:57:50 +0100
committerFabrice <fabrice@schaub-dev.xyz>2026-03-03 07:57:50 +0100
commit010b3e2e1eb3870724bbde6de7a0929b20bf2f75 (patch)
treea4e51e00669fde113ba38c38dac2d92c8e9a0387 /src/voidc.cc
parentf007cab7e755cb2f0353670765f890caf446d267 (diff)
working on utf8 handling and lexing
Diffstat (limited to 'src/voidc.cc')
-rw-r--r--src/voidc.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/voidc.cc b/src/voidc.cc
index fbb9577..e6c76e8 100644
--- a/src/voidc.cc
+++ b/src/voidc.cc
@@ -1,9 +1,9 @@
#include <cstdlib>
-#include <cstring>
#include "common.cc"
#include "memory.cc"
#include "source.cc"
+#include "tokenizer.cc"
static const char* SOURCE = R"(
#include <stdlib.h>
@@ -27,12 +27,7 @@ int main() {
if (!ret) return EXIT_FAILURE;
buffer_stack_push(&stack, buffer);
- buffer_stack_push(&stack, buffer);
- int c = 0;
- while(buffer_stack_pop(&stack, &buffer)) {
- c += 1;
- }
+ Tokenizer tokenizer(&stack);
- assert(c == 2);
}