aboutsummaryrefslogtreecommitdiff
path: root/src/compile/reductions.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compile/reductions.h')
-rw-r--r--src/compile/reductions.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/compile/reductions.h b/src/compile/reductions.h
new file mode 100644
index 00000000..5c76c74f
--- /dev/null
+++ b/src/compile/reductions.h
@@ -0,0 +1,8 @@
+// This file defines how to compile reductions like `(+: nums)`
+#pragma once
+
+#include "../ast.h"
+#include "../environment.h"
+#include "../stdlib/datatypes.h"
+
+Text_t compile_reduction(env_t *env, ast_t *ast);