aboutsummaryrefslogtreecommitdiff
path: root/src/diag.h
diff options
context:
space:
mode:
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);