diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-24 18:18:59 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-24 18:18:59 -0400 |
| commit | 7e5e03f191c4379bf7e34cccfa044ec928189eed (patch) | |
| tree | 3c6773e0838850fbce2086ea9021903b8a7b57b6 /src/compile/reductions.h | |
| parent | 6cc848bfde0cc6bd702019f81c1467e409f35487 (diff) | |
Split reductions into their own file
Diffstat (limited to 'src/compile/reductions.h')
| -rw-r--r-- | src/compile/reductions.h | 8 |
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); |
