~pixelherodev/c3lib

ref: ddd789667e0b3f1f92a636752601943924d590c9 c3lib/tags.h -rw-r--r-- 3.5 KiB
ddd78966Noam Preil tmp 3 months ago
                                                                                
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
#define C3_ENUM_tag(ITEM) \
	ITEM(BAD), \
	ITEM(SPACE), \
	ITEM(COMMENT), \
	ITEM(CONSTANT), \
	ITEM(CONTEXTUAL), \
	ITEM(TYPE), \
	ITEM(DISCARD), \
	ITEM(IDENT), \
	ITEM(EXPORT), \
	ITEM(VISIBILITY), \
	ITEM(BLOCK), \
	ITEM(VAR), \
	ITEM(CONST), \
	ITEM(ASYNC), \
	ITEM(PLUS), \
	ITEM(DOT), \
	ITEM(COMMA), \
	ITEM(ASTERISK), \
	ITEM(PTRC), \
	ITEM(PTRUNKNOWN), \
	ITEM(HEX), \
	ITEM(CHAR), \
	ITEM(ANYFRAME), \
	ITEM(NOINLINE), \
	ITEM(INLINE), \
	ITEM(LINE_STR), \
	ITEM(NORETURN), \
	ITEM(PIPE), \
	ITEM(SKIP), \
	ITEM(AND), \
	ITEM(OR), \
	ITEM(FN),\
	ITEM(COMPTIME),\
	ITEM(PUB), \
	ITEM(TEST), \
	ITEM(EXTERN), \
	ITEM(LITERAL_STRING), \
	ITEM(LINT), \
	ITEM(EQ), \
	ITEM(PLUS_EQUAL), \
	ITEM(MINUS_EQUAL), \
	ITEM(DEQ), \
	ITEM(NEQ), \
	ITEM(LE), \
	ITEM(GT), \
	ITEM(LEQ), \
	ITEM(GEQ), \
	ITEM(LSHIFT), \
	ITEM(RSHIFT), \
	ITEM(AMPERSAND), \
	ITEM(TILDE),\
	ITEM(CARET), \
	ITEM(COLON), \
	ITEM(SCOLON), \
	ITEM(LBRACE), \
	ITEM(RBRACE), \
	ITEM(LPAREN), \
	ITEM(RPAREN), \
	ITEM(LSQUARE), \
	ITEM(RSQUARE), \
	ITEM(LANGLE), \
	ITEM(RANGLE), \
	ITEM(VOID), \
	ITEM(WHILE), \
	ITEM(FALSE), \
	ITEM(KW_ELSE), \
	ITEM(ASM), \
	ITEM(THREADLOCAL), \
	ITEM(USINGNAMESPACE), \
	ITEM(TRY), \
	ITEM(ALIGN), \
	ITEM(LINK), \
	ITEM(IMPORT), \
	ITEM(SUSPEND), \
	ITEM(NOSUSPEND), \
	ITEM(ERRDEFER), \
	ITEM(SWITCH), \
	ITEM(DEFER), \
	ITEM(EXCLAIM), \
	ITEM(ANYTYPE), \
	ITEM(AWAIT), \
	ITEM(MINUS), \
	ITEM(WMINUS), \
	ITEM(BREAK), \
	ITEM(CONTINUE), \
	ITEM(RESUME), \
	ITEM(RETURN), \
	ITEM(FOR), \
	ITEM(QUESTION), \
	ITEM(BUILTIN_THIS), \
	ITEM(BUILTIN_PANIC), \
	ITEM(CALL_CONV), \
	ITEM(CALL_CONV_DEFAULT), \
	ITEM(CALL_CONV_INLINE), \
	ITEM(ALLOWZERO), \
	ITEM(CATCH), \
	ITEM(ENUM), \
	ITEM(NOALIAS), \
	ITEM(KEYWORD_NULL), \
	ITEM(OPAQUE), \
	ITEM(ORELSE), \
	ITEM(PACKED), \
	ITEM(LINKSECTION), \
	ITEM(STRUCT), \
	ITEM(FIELD), \
	ITEM(TRUE), \
	ITEM(UNDEFINED), \
	ITEM(UNION), \
	ITEM(ENUM_LITERAL), \
	ITEM(KW_IF), \
	ITEM(UNREACHABLE), \
	ITEM(VOLATILE), \
	ITEM(TYPE_ARRAY), \
	ITEM(TYPE_SLICE), \
	ITEM(TYPE_BOOL), \
	ITEM(TYPE_STRUCTURE), \
	ITEM(TYPE_UNRES), \
	ITEM(TYPE_OPTIONAL), \
	ITEM(TYPE_PTR), \
	ITEM(TYPE_COMPTIME_INT), \
	ITEM(TYPE_U8), \
	ITEM(TYPE_U32), \
	ITEM(TYPE_FN), \
	ITEM(TYPE_STRING), \
	ITEM(INITIALIZED), \
	ITEM(FIELD_INIT), \
	ITEM(FN_PARAM), \
	ITEM(FN_PARAM_LIST), \
	ITEM(VALUE_UNDEF), \
	ITEM(VALUE_U32), \
	ITEM(VALUE_FN), \
	ITEM(VALUE_TRUE), \
	ITEM(VALUE_FALSE), \
	ITEM(VALUE_NULL), \
 	ITEM(VALUE_STRING), \
	ITEM(INT), \
	ITEM(EXPR_IF), \
	ITEM(EXPR_LIST), \
 	ITEM(EXPR_RETURN), \
	ITEM(EXPR_DEFER), \
	ITEM(EXPR_MEMBER), \
	ITEM(EXPR_ASSIGN), \
	ITEM(EXPR_CALL), \
	ITEM(EXPR_ASSIGN_PLUS), \
	ITEM(EXPR_ASSIGN_MINUS), \
	ITEM(EXPR_BITWISE_OR), \
	ITEM(EXPR_BITSHIFT_LEFT), \
	ITEM(EXPR_NOT), \
	ITEM(EXPR_NEGATIVE), \
	ITEM(EXPR_BITWISE_NOT), \
	ITEM(EXPR_WRAP_NEGATIVE), \
	ITEM(EXPR_ADD), \
	ITEM(EXPR_SUB), \
	ITEM(EXPR_ADDR_OF), \
	ITEM(EXPR_TRY), \
	ITEM(EXPR_AWAIT), \
	ITEM(CONTAINER_OFFSET), \
	ITEM(IR_ADD), \
	ITEM(IR_SUB), \
	ITEM(IR_CONTAINER), \
	ITEM(IR_PANIC), \
 	ITEM(IR_FN), \
	ITEM(IR_ARG), \
	ITEM(IR_CALL), \
 	ITEM(IR_INVERT), \
 	ITEM(IR_BREAK), \
 	ITEM(IR_COND_BR), \
 	ITEM(IR_COND_JMP), \
 	ITEM(IR_RELOOP), \
 	ITEM(IR_RETURN), \
 	ITEM(IR_UNCOND_JMP), \
	ITEM(IR_BITSHIFT_LEFT), \
	ITEM(IR_BITWISE_OR), \
	ITEM(IR_SET), \
	ITEM(LOOP), \
	ITEM(DEP), \
	ITEM(SCOPE), \
	ITEM(SCOPE_LIST_DECL), \
	ITEM(SCOPE_LIST_SCOPE)

#define C3_ITEM_(NAME) C3_##NAME

typedef enum{
	C3_ENUM_tag(C3_ITEM_),
	C3_END,
} c3tag;

#undef C3_ITEM_

char *c3tagstr(c3tag);