tokenizing integer literals

This commit is contained in:
pommicket 2022-01-11 14:03:13 -05:00
parent fc96e22d4f
commit b0837b367e
5 changed files with 221 additions and 31 deletions

View file

@ -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