summaryrefslogtreecommitdiff
path: root/05/constants.b
diff options
context:
space:
mode:
Diffstat (limited to '05/constants.b')
-rw-r--r--05/constants.b32
1 files changed, 32 insertions, 0 deletions
diff --git a/05/constants.b b/05/constants.b
new file mode 100644
index 0000000..691fe65
--- /dev/null
+++ b/05/constants.b
@@ -0,0 +1,32 @@
+; #define KEYWORD_AUTO 101 (auto only exists in C for legacy reasons and doesn't appear in TCC's source code)
+#define KEYWORD_DOUBLE 102
+#define KEYWORD_INT 103
+#define KEYWORD_STRUCT 104
+#define KEYWORD_BREAK 105
+#define KEYWORD_ELSE 106
+#define KEYWORD_LONG 107
+#define KEYWORD_SWITCH 108
+#define KEYWORD_CASE 109
+#define KEYWORD_ENUM 110
+#define KEYWORD_REGISTER 111
+#define KEYWORD_TYPEDEF 112
+#define KEYWORD_CHAR 113
+#define KEYWORD_EXTERN 114
+#define KEYWORD_RETURN 115
+#define KEYWORD_UNION 116
+; #define KEYWORD_CONST 117 (we can just #define const)
+#define KEYWORD_FLOAT 118
+#define KEYWORD_SHORT 119
+#define KEYWORD_UNSIGNED 120
+#define KEYWORD_CONTINUE 121
+#define KEYWORD_FOR 122
+; #define KEYWORD_SIGNED 123 (again, just #define signed)
+#define KEYWORD_VOID 124
+#define KEYWORD_DEFAULT 125
+#define KEYWORD_GOTO 126
+#define KEYWORD_SIZEOF 127
+; #define KEYWORD_VOLATILE 128 (just #define volatile if need be)
+#define KEYWORD_DO 129
+#define KEYWORD_IF 130
+#define KEYWORD_STATIC 131
+#define KEYWORD_WHILE 132