start adding error message support

This commit is contained in:
2025-07-09 01:55:40 +01:00
parent 9e5e932d39
commit e234ea074b
19 changed files with 293 additions and 115 deletions

View File

@@ -4,9 +4,10 @@
#include "../dynamic_array/darray.h"
#include "token.h"
#include <stdio.h>
#include "../err.h"
typedef struct {
const char *path;
char *path;
FILE *file;
size_t current_line;
size_t current_column;
@@ -14,6 +15,6 @@ typedef struct {
// add more fields as needed
} LexerState;
void lexer(LexerState state);
ArErr lexer(LexerState state);
#endif // LEXER_H