diff options
author | pommicket <pommicket@gmail.com> | 2022-01-11 14:03:13 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-01-11 14:03:47 -0500 |
commit | b0837b367e812823e1723e95d3394744bb58e509 (patch) | |
tree | 9f87bdbaa4953396a576d8b496e478b872416536 /05/constants.b | |
parent | fc96e22d4fc75e08c52e703a595d639f29eb101b (diff) |
tokenizing integer literals
Diffstat (limited to '05/constants.b')
-rw-r--r-- | 05/constants.b | 6 |
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 |