add tokens to state struct

This commit is contained in:
2025-05-27 13:24:56 +01:00
parent 6249c3519c
commit 3dedd7f348
15 changed files with 361 additions and 206 deletions

View File

@@ -1,7 +1,11 @@
#include "token.h"
typedef struct {
const char *filename;
const char *path;
const char *content;
int current_column;
TokenStruct* tokens;
// add more fields as needed
} LexerState;
int lexer();
void lexer(LexerState state);