adding strlits
This commit is contained in:
11
parser3.c
Normal file
11
parser3.c
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user