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;