aboutsummaryrefslogtreecommitdiff
path: root/src/compile/headers.h
blob: edfd40867eff44aa315cac0b203eb0352432dc5e (plain)
1
2
3
4
5
6
7
8
9
10
11
// This file defines how to compile header files
#pragma once

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

Text_t compile_file_header(env_t *env, Path_t header_path, ast_t *ast);
Text_t compile_namespace_header(env_t *env, const char *ns_name, ast_t *block);
Text_t compile_statement_namespace_header(env_t *env, Path_t header_path, ast_t *ast);
Text_t compile_statement_type_header(env_t *env, Path_t header_path, ast_t *ast);