hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/eval.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-09-19 11:35:28 +0200
committerhachem <im@hachem.wtf>2026-09-19 11:35:28 +0200
commitdd52ccd9319aa847cddc486519075b806c9e9092 (patch)
treedf290f8972aa6eb164fad7258002ccb95cf648bf /eval.h
parent768bbdd137f5b205e4282bd79572681aef4514e3 (diff)
feat: emmit a decltype of a difference
Diffstat (limited to 'eval.h')
-rw-r--r--eval.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/eval.h b/eval.h
new file mode 100644
index 0000000..8b4a5f6
--- /dev/null
+++ b/eval.h
@@ -0,0 +1,23 @@
+#pragma once
+
+#include "ast.h"
+
+enum TypeKind
+{
+ KIND_VOID,
+ KIND_VALUE
+};
+
+struct Type
+{
+ enum TypeKind kind;
+ long number;
+};
+
+enum RunStatus
+{
+ RUN_DONE,
+ RUN_FAILED
+};
+
+enum RunStatus execute(const struct Node* statement);