aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/dump.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-05 17:36:51 +0200
committerlemon <lsof@mailbox.org>2022-08-05 17:36:51 +0200
commitc2a13e05596c724fbdbc3e8ff1266c099b675e56 (patch)
tree3be2194055a624d718c94c528651d487b2571273 /bootstrap/dump.c
parentd95555f87eced5fcb3458d76c765afe2de89bdcb (diff)
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
Diffstat (limited to 'bootstrap/dump.c')
-rw-r--r--bootstrap/dump.c2
1 files changed, 2 insertions, 0 deletions
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);