Add c types, int is default type

This commit is contained in:
Krzosa Karol
2023-04-16 15:02:25 +02:00
parent a2662d1cd8
commit 7152a710cc
8 changed files with 125 additions and 37 deletions

View File

@@ -184,16 +184,27 @@ struct Token {
enum Ast_Type_Kind {
TYPE_NONE,
TYPE_S64, // FIRST_NUMERIC
TYPE_S64, // FIRST_NUMERIC is_int start
TYPE_S32,
TYPE_S16,
TYPE_S8,
TYPE_INT,
TYPE_UINT,
TYPE_LONG,
TYPE_ULONG,
TYPE_LLONG,
TYPE_ULLONG,
TYPE_SHORT,
TYPE_USHORT,
TYPE_CHAR,
TYPE_UCHAR,
TYPE_U64,
TYPE_U32,
TYPE_U16,
TYPE_U8,
TYPE_U8, //is_int end
TYPE_F32,
TYPE_F64,
TYPE_POINTER,