14#include "../../lexer/lexer.h"
15#include "../memory/memory.h"
ErrorInformation * error_get_at_index(int index)
Gets the error at the specified index.
Definition error.c:343
void error_clear(void)
Clears all accumulated errors.
Definition error.c:78
void error_add(ErrorInformation err)
Adds a new error to the internal error list.
Definition error.c:69
bool error_report(void)
Reports all accumulated errors to stderr or appropriate output.
Definition error.c:250
const char * generate_line(ArenaAllocator *arena, Token *tokens, int token_count, int target_line)
Generates the source code line text for a given line number.
Definition error.c:27
bool error_has_errors(void)
Checks if there are any errors.
Definition error.c:338
int error_get_count(void)
Gets the current error count.
Definition error.c:333
Arena allocator structure.
Definition memory.h:101
Represents a single token extracted by the lexer.
Definition lexer.h:151