summaryrefslogtreecommitdiff
path: root/toc.c
blob: 1a6684ccb4afafa597d91d78109cb08a4095e11e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
  Copyright (C) 2019 Leo Tenenbaum.
  This file is part of toc. toc is distributed under version 3 of the GNU General Public License, without any warranty whatsoever.
  You should have received a copy of the GNU General Public License along with toc. If not, see <https://www.gnu.org/licenses/>.
*/
/* Includes all of toc's files */
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdarg.h>
#include <string.h>
#include <limits.h>
#include <float.h>
#include <stdbool.h>
#include <inttypes.h>

#include "types.h"

/* forward declarations for debugging */
static void print_val(Value v, Type *t);

#include "allocator.c"
#include "arr.c"
#include "location.c"
#include "err.c"
#include "rand.c"
#include "blockarr.c"
#include "str.c"
#include "instance_table.c"
#include "copy.c"

#include "identifiers.c"
#include "tokenizer.c"
#include "parse.c"
#include "scope.c"


#include "eval.c"
#include "infer.c"
#include "types.c"
static bool cgen_decls_file(CGenerator *g, ParsedFile *f);
static bool typedefs_file(CGenerator *g, ParsedFile *f);
#include "cgen.c"
#include "typedefs_cgen.c"
#include "decls_cgen.c"

#ifdef TOC_DEBUG
#include "tests.c"
#endif