From df84159ed87ee96f0131dbf35b8889a68378bc10 Mon Sep 17 00:00:00 2001 From: zekexiao Date: Thu, 15 Jan 2026 23:51:19 +0800 Subject: [PATCH] Fix for --- src/parser.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/parser.cpp b/src/parser.cpp index c5d6a76..35b4f9c 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -216,7 +216,6 @@ StmtPtr Parser::for_statement() { StmtPtr initializer = nullptr; if (!match({TokenType::SEMICOLON})) { initializer = declaration(); - consume(TokenType::SEMICOLON, "Expected ';' after for initializer."); } ExprPtr condition = nullptr;