diff options
| author | hachem <im@hachem.wtf> | 2026-08-31 02:01:44 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-31 02:01:44 +0200 |
| commit | ce9f0d32c33333161cf9a5c2b7446d80fa0f13b5 (patch) | |
| tree | 3ceb2594de443f7928c5300d42c00428778eae11 /src/diag/diag.h | |
| parent | cf24f576891ece60bdf04928d3c39dd0bbb9b5f6 (diff) | |
feat: add diagnostics module with source-anchored caret errors
Diffstat (limited to 'src/diag/diag.h')
| -rw-r--r-- | src/diag/diag.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/diag/diag.h b/src/diag/diag.h new file mode 100644 index 0000000..7a99266 --- /dev/null +++ b/src/diag/diag.h @@ -0,0 +1,12 @@ +#pragma once + +#include "lexer/lexer.h" + +struct Source +{ + const char* name; + const char* text; +}; + +void report_error(struct Source source, struct Token token, const char* message); +void report_error_message(const char* message); |
