add identifier to parser

This commit is contained in:
2025-06-01 02:28:27 +01:00
parent b7e9493171
commit d2518afb8e
20 changed files with 733 additions and 251 deletions

View File

@@ -1,19 +1,18 @@
#ifndef LEXER_H
#define LEXER_H
#include "token.h"
#include "../dynamic_array/darray.h"
#include "token.h"
#include <stdio.h>
typedef struct {
const char *path;
FILE *file;
int current_column;
DArray* tokens;
// add more fields as needed
const char *path;
FILE *file;
int current_column;
DArray *tokens;
// add more fields as needed
} LexerState;
void lexer(LexerState state);
#endif // LEXER_H