aboutsummaryrefslogtreecommitdiff
path: root/src/compile/reductions.h
blob: 823612afcf498abe03cb6987a30d3250a385834b (plain)
1
2
3
4
5
6
7
8
9
// 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);