aboutsummaryrefslogtreecommitdiff
path: root/src/compile/whens.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-24 18:13:53 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-24 18:13:53 -0400
commite56f4b447e785a7b0ad95d9f2c21e36e3d2bed2c (patch)
tree786f56793781977d9dbf899fd59e2f904dee481e /src/compile/whens.h
parent222fbcd0027f085c48e93c6e70445699eec79d96 (diff)
Split 'when' into its own file
Diffstat (limited to 'src/compile/whens.h')
-rw-r--r--src/compile/whens.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/compile/whens.h b/src/compile/whens.h
new file mode 100644
index 00000000..473124d5
--- /dev/null
+++ b/src/compile/whens.h
@@ -0,0 +1,9 @@
+// This file defines how to compile 'when' statements/expressions
+#pragma once
+
+#include "../ast.h"
+#include "../environment.h"
+#include "../stdlib/datatypes.h"
+
+Text_t compile_when_statement(env_t *env, ast_t *ast);
+Text_t compile_when_expression(env_t *env, ast_t *ast);