From c2a13e05596c724fbdbc3e8ff1266c099b675e56 Mon Sep 17 00:00:00 2001 From: lemon Date: Fri, 5 Aug 2022 17:36:51 +0200 Subject: modify let and static decls to allow multiple vars this involved transforming statement and declaration parsing code to use a CPS-like style to yield many decls within one lexical decl --- bootstrap/dump.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bootstrap/dump.c') diff --git a/bootstrap/dump.c b/bootstrap/dump.c index 5d83503..12a5a2a 100644 --- a/bootstrap/dump.c +++ b/bootstrap/dump.c @@ -323,6 +323,7 @@ dumpstmt(const struct stmt *stmt, int ws) { break; case Sfor: epri("%wfor \n", ws); + /* if (stmt->loop.ini) dumpstmt(stmt->loop.ini, ws + 1); epri("%w; %e; ", ws + 1, &stmt->loop.test); @@ -330,6 +331,7 @@ dumpstmt(const struct stmt *stmt, int ws) { epri("%e", stmt->loop.next); epri("\n"); dumpblock(&stmt->loop.body, ws + 1); + */ break; case Siswitch: epri("%wswitch %e {\n", ws, &stmt->iswitch.test); -- cgit v1.2.3