summaryrefslogtreecommitdiff
path: root/05/constants.b
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-01-11 14:03:13 -0500
committerpommicket <pommicket@gmail.com>2022-01-11 14:03:47 -0500
commitb0837b367e812823e1723e95d3394744bb58e509 (patch)
tree9f87bdbaa4953396a576d8b496e478b872416536 /05/constants.b
parentfc96e22d4fc75e08c52e703a595d639f29eb101b (diff)
tokenizing integer literals
Diffstat (limited to '05/constants.b')
-rw-r--r--05/constants.b6
1 files changed, 6 insertions, 0 deletions
diff --git a/05/constants.b b/05/constants.b
index 82da6b2..966a125 100644
--- a/05/constants.b
+++ b/05/constants.b
@@ -71,6 +71,12 @@
#define TOKEN_CONSTANT_CHAR 4
#define TOKEN_STRING 5
+; these are stored in the "info" field of the token
+#define NUMBER_NO_SUFFIX 0
+#define NUMBER_SUFFIX_U 1
+#define NUMBER_SUFFIX_L 2
+#define NUMBER_SUFFIX_UL 3
+#define NUMBER_SUFFIX_F 4
; #define KEYWORD_AUTO 21 (@NONSTANDARD auto only exists in C for legacy reasons and doesn't appear in TCC's source code)
#define KEYWORD_DOUBLE 22