loop code
[IRC.git] / Robust / src / IR / Tree / BuildIR.java
index 8e70258cc1f815d732168d49dbde91418fe47c7b..6b6631662ff7c143ac384a4f1f27f5d61facc094 100644 (file)
@@ -710,6 +710,11 @@ public class BuildIR {
       blockstatements.add(start);
       blockstatements.addAll(parseSESEBlock(blockstatements,pn.getChild("body").getFirstChild()));
       blockstatements.add(end);
+    } else if (isNode(pn,"continue")) {
+       blockstatements.add(new ContinueBreakNode(false));
+    } else if (isNode(pn,"break")) {
+       blockstatements.add(new ContinueBreakNode(true));
+
     } else {
       System.out.println("---------------");
       System.out.println(pn.PPrint(3,true));