add identifier to parser
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user