aboutsummaryrefslogtreecommitdiff
path: root/src/diag.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-09-08 12:00:49 +0200
committerhachem <im@hachem.wtf>2026-09-08 12:00:49 +0200
commit9d47486aac9cd1a4422b78ee273b7a27bf7b733a (patch)
treea015067fe963f3a24e8f37a8b9cd581540b3bb8c /src/diag.h
parent21be45a904a0afc767214298721bd2bbce19a054 (diff)
refactor: flatten src and migrate to meson
Diffstat (limited to 'src/diag.h')
-rw-r--r--src/diag.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/diag.h b/src/diag.h
new file mode 100644
index 0000000..e79b465
--- /dev/null
+++ b/src/diag.h
@@ -0,0 +1,12 @@
+#pragma once
+
+#include "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);