From 5541c597cb68f76d1fc53e01b931eb870856843c Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 3 Sep 2025 19:21:32 +0900 Subject: feat: partially support floating point number types (parsing only) --- src/ast.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ast.c') diff --git a/src/ast.c b/src/ast.c index 0d19d40..78fb2b9 100644 --- a/src/ast.c +++ b/src/ast.c @@ -29,6 +29,12 @@ const char* type_kind_stringify(TypeKind k) { return "long long"; else if (k == TypeKind_ullong) return "unsigned long long"; + else if (k == TypeKind_float) + return "float"; + else if (k == TypeKind_double) + return "double"; + else if (k == TypeKind_ldouble) + return "long double"; else if (k == TypeKind_struct) return "struct"; else if (k == TypeKind_union) -- cgit v1.2.3-70-g09d2