aboutsummaryrefslogtreecommitdiff
path: root/src/compile.h
blob: 361acbb6098299bd8001e77db18056220b862776 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

// Compilation functions

#include "ast.h"
#include "environment.h"
#include "stdlib/datatypes.h"
#include "types.h"

Text_t compile(env_t *env, ast_t *ast);
Text_t compile_cli_arg_call(env_t *env, Text_t fn_name, type_t *fn_type, const char *version);
Text_t compile_empty(type_t *t);
Text_t compile_maybe_incref(env_t *env, ast_t *ast, type_t *t);

// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0