Fixed support for do-while loops.
authorJayant DeSouza <jdesouza@uiuc.edu>
Mon, 17 May 2004 23:01:52 +0000 (23:01 +0000)
committerJayant DeSouza <jdesouza@uiuc.edu>
Mon, 17 May 2004 23:01:52 +0000 (23:01 +0000)
src/langs/jade/java.tree.g

index fb6ae90e49b41eaf3726769d6b41aefa46090b11..12a84e7b3bd6ae41d0c022c0e2faa1b4b492d92e 100644 (file)
@@ -737,7 +737,7 @@ stat
        |       #("while" we:expression { J.c.append(J.indent()+"while("+J.printExpression(we)+")");} stat)
        |       #("do" {J.c.append(J.indent()+"do");}
             stat { J.c.append(J.indent()+"while(");}
-            expression {J.c.append(");\n");})
+            dwe:expression {J.c.append(J.pE(dwe) + ");\n");})
        |       #("break" (bi:IDENT)? {J.c.append(J.indent()+"break "+ J.pE(bi) +";\n");} )
        |       #("continue" (ci:IDENT)? {J.c.append(J.indent()+"continue "+ J.pE(ci) +";\n");} )
        |       #("return" (re:expression)? {J.c.append(J.indent()+"return "+ J.printExpression(re) +";\n");} )