adding strlits

This commit is contained in:
2025-11-05 14:28:45 +03:00
parent de4cecd4c4
commit a8c8870c33
3 changed files with 110 additions and 26 deletions

11
parser3.c Normal file
View File

@@ -0,0 +1,11 @@
#include "./lexer.h"
int main(void){
const char ts[] = "\"hello\" hi"; // = 3
Token tk = tokenize_all(ts);
for (size_t i=0; i<tk.size; ++i){
printf("TokenNum: %zu Type: %d Value: %s\n", i, tk.type[i], tk.text[i]);
}
// printf("token count: %zu\n", tk.size);
}