model and checks
[repair.git] / Repair / RepairCompiler / MCC / CDL.cup
index bb7cfe34461e7b289ce59c4d49aaee9ab35c1fc2..53df66fbdf1e882a466ef2d9fad660d5a1d9adb8 100755 (executable)
@@ -143,6 +143,7 @@ parser code {:
 
     terminal IMPLIES;
     terminal TRUE;
+    terminal FALSE;
     terminal ISVALID;
     terminal FOR;
     terminal TO;
@@ -388,7 +389,7 @@ predicate ::=
        RESULT = inclusion.getRoot();
        :}
      
-       | SIZEOF OPENPAREN setexpr:setexpr CLOSEPAREN compare:compare DECIMAL:dec
+       | SIZEOF OPENPAREN setexpr:setexpr CLOSEPAREN compare:compare LITERAL OPENPAREN DECIMAL:dec CLOSEPAREN
        {:
        ParseNode sizeof = (new ParseNode("predicate", parser.curLine(4))).addChild("sizeof");
        sizeof.addChild(setexpr);
@@ -573,6 +574,12 @@ literal ::=
        RESULT = (new ParseNode("literal", parser.curLine(1))).addChild("boolean").addChild("true").getRoot();
        :}
         
+       | FALSE
+       {:
+       debugMessage(PRODSTRING);
+       RESULT = (new ParseNode("literal", parser.curLine(1))).addChild("boolean").addChild("false").getRoot();
+       :}
+        
        | DECIMAL:dec
        {:
        debugMessage(PRODSTRING);