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/parse.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/parse.c') diff --git a/src/parse.c b/src/parse.c index 3f55a51..51a85ff 100644 --- a/src/parse.c +++ b/src/parse.c @@ -623,6 +623,8 @@ static AstNode* parse_primary_expr(Parser* p) { Token* t = next_token(p); if (t->kind == TokenKind_literal_int) { return ast_new_int(t->value.integer); + } else if (t->kind == TokenKind_literal_double) { + return ast_new_double(t->value.floating); } else if (t->kind == TokenKind_keyword_true) { return ast_new_int(1); } else if (t->kind == TokenKind_keyword_false) { -- cgit v1.3-1-g0d28