From ce9f0d32c33333161cf9a5c2b7446d80fa0f13b5 Mon Sep 17 00:00:00 2001 From: hachem Date: Mon, 31 Aug 2026 02:01:44 +0200 Subject: feat: add diagnostics module with source-anchored caret errors --- src/diag/diag.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/diag/diag.h (limited to 'src/diag/diag.h') 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); -- cgit v1.3