change to dynamic array for lexer and parser to speed up lexical analysis
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
#include "token.h"
|
||||
#include "../list/list.h"
|
||||
#include "../dynamic_array/darray.h"
|
||||
#include <stdio.h>
|
||||
|
||||
typedef struct {
|
||||
const char *path;
|
||||
FILE *file;
|
||||
int current_column;
|
||||
LinkedList* tokens;
|
||||
DArray* tokens;
|
||||
// add more fields as needed
|
||||
} LexerState;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user