Files
Chloride/src/lexer/lexer.h
2025-07-13 18:28:05 +01:00

26 lines
436 B
C

/*
* SPDX-FileCopyrightText: 2025 William Bell
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef LEXER_H
#define LEXER_H
#include "../dynamic_array/darray.h"
#include "token.h"
#include <stdio.h>
#include "../err.h"
typedef struct {
char *path;
FILE *file;
size_t current_line;
size_t current_column;
DArray *tokens;
// add more fields as needed
} LexerState;
ArErr lexer(LexerState state);
#endif // LEXER_H