summaryrefslogtreecommitdiff
path: root/toc.c
blob: 8bc8c063dcde2163f2a94343075f001efadd64c9 (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
/* Includes all of toc's files */
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
#include <inttypes.h>
#include <stdbool.h>

typedef uint64_t UInteger;
typedef int64_t Integer;
typedef long double Floating; /* OPTIM: Switch to double, but make sure floating-point literals are right */

typedef uint8_t U8;
typedef uint16_t U16;
typedef uint32_t U32;
typedef uint64_t U64;

typedef int8_t I8;
typedef int16_t I16;
typedef int32_t I32;
typedef int64_t I64;

typedef float F32;
typedef double F64;

#define INTEGER_MAX INT64_MAX
#define UINTEGER_FMT "%"PRIu64
#define INTEGER_FMT "%"PRId64

#include "location.c"
#include "err.c"
#include "allocator.c"
#include "arr.c"
#include "blockarr.c"
#include "str.c"
#include "identifiers.c"
#include "tokenizer.c"
#include "parse.c"
#include "eval.c"
#include "types.c"

#include "tests.c"