summaryrefslogtreecommitdiff
path: root/src/voidc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/voidc.cc')
-rw-r--r--src/voidc.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/voidc.cc b/src/voidc.cc
index e6c76e8..bba510f 100644
--- a/src/voidc.cc
+++ b/src/voidc.cc
@@ -1,3 +1,4 @@
+#include <cstdio>
#include <cstdlib>
#include "common.cc"
@@ -30,4 +31,9 @@ int main() {
Tokenizer tokenizer(&stack);
+ Token token = {};
+ while(tokenizer_next(&tokenizer, &token))
+ fprintf(stdout, "Token(kind: %d, text: %.*s)\n", token.kind, (int)token.text.length, token.text.ptr);
+
+
}