diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-09-03 19:21:32 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-09-03 19:21:32 +0900 |
| commit | 5541c597cb68f76d1fc53e01b931eb870856843c (patch) | |
| tree | f7510dff0dd6ab8e9b67f85b3c8b067cfa4a3a9a /src/ast.c | |
| parent | cab2491d14c6452f4382ce111a25166ed6e997c9 (diff) | |
| download | ducc-5541c597cb68f76d1fc53e01b931eb870856843c.tar.gz ducc-5541c597cb68f76d1fc53e01b931eb870856843c.tar.zst ducc-5541c597cb68f76d1fc53e01b931eb870856843c.zip | |
feat: partially support floating point number types (parsing only)
Diffstat (limited to 'src/ast.c')
| -rw-r--r-- | src/ast.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |
