summaryrefslogtreecommitdiff
path: root/parse/names.c
blob: f1da72c7073e2cb8e7e6adea8254eef503216303 (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
52
53
54
55
56
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <inttypes.h>
#include <ctype.h>
#include <string.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>

#include "util.h"
#include "parse.h"

char *opstr[] = {
#define O(op, pure, class, pretty) #op,
#include "ops.def"
#undef O
};

char *oppretty[] = {
#define O(op, pure, class, pretty) pretty,
#include "ops.def"
#undef O
};

int opispure[] = {
#define O(op, pure, class, pretty) pure,
#include "ops.def"
#undef O
};

int opclass[] = {
#define O(op, pure, class, pretty) class,
#include "ops.def"
#undef O
};

char *nodestr[] = {
#define N(nt) #nt,
#include "nodes.def"
#undef N
};

char *litstr[] = {
#define L(lt) #lt,
#include "lits.def"
#undef L
};

char *tidstr[] = {
#define Ty(t, n, stk) n,
#include "types.def"
#undef Ty
};