From 0ae64ed2c00f66c7f3ddec8689169bacafff87ea Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 7 Feb 2026 19:06:29 +0900 Subject: feat: partially support float/double --- src/token.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/token.h') diff --git a/src/token.h b/src/token.h index b81c10a..6c4f20b 100644 --- a/src/token.h +++ b/src/token.h @@ -125,6 +125,7 @@ typedef enum { TokenKind_ident, TokenKind_le, TokenKind_literal_int, + TokenKind_literal_double, TokenKind_literal_str, TokenKind_lshift, TokenKind_lt, @@ -155,6 +156,7 @@ bool is_pp_directive(TokenKind k); typedef union { const char* string; int integer; + double floating; } TokenValue; typedef struct { -- cgit v1.3-1-g0d28