aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ast.h
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-09-01 21:39:10 +0900
committernsfisis <nsfisis@gmail.com>2025-09-01 23:55:56 +0900
commitc5cf38fffec9b7e0a96cc3f016c3a01820498953 (patch)
treecfee0200dc16735af6e6e12c7fdedeca42249c4f /src/ast.h
parentdfea2b35c962740c701ebc2151067ce6fb155e78 (diff)
downloadducc-c5cf38fffec9b7e0a96cc3f016c3a01820498953.tar.gz
ducc-c5cf38fffec9b7e0a96cc3f016c3a01820498953.tar.zst
ducc-c5cf38fffec9b7e0a96cc3f016c3a01820498953.zip
feat: support signed/unsigned specifier
Diffstat (limited to 'src/ast.h')
-rw-r--r--src/ast.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/ast.h b/src/ast.h
index 8e70260..13fbf55 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -18,16 +18,23 @@ typedef enum StorageClass StorageClass;
enum TypeKind {
TypeKind_unknown,
+ TypeKind_void,
TypeKind_char,
+ TypeKind_schar,
+ TypeKind_uchar,
TypeKind_short,
+ TypeKind_ushort,
TypeKind_int,
+ TypeKind_uint,
TypeKind_long,
- TypeKind_void,
- TypeKind_ptr,
- TypeKind_array,
- TypeKind_enum,
+ TypeKind_ulong,
+ TypeKind_llong,
+ TypeKind_ullong,
TypeKind_struct,
TypeKind_union,
+ TypeKind_enum,
+ TypeKind_ptr,
+ TypeKind_array,
};
typedef enum TypeKind TypeKind;