Bug fixes for parsing sum expressions.
[repair.git] / Repair / RepairCompiler / MCC / CDL.cup
index f491a6e556567f337e575b0b0f162a057acb4c5c..12b94a4b3ede49f20dc9d8542bde3871efb8798f 100755 (executable)
@@ -482,9 +482,10 @@ expr ::=
        SUM OPENPAREN ID:set DOT ID:relation CLOSEPAREN
        {:
        debugMessage(PRODSTRING);
-       ParseNode expr = new ParseNode("sumexpr", parser.curLine(3));
-       expr.addChild("dot").addChild("set", parser.curLine(3)).addChild(set);
-       expr.getChild("dot").addChild("relation", parser.curLine(1)).addChild(relation);
+       ParseNode expr = new ParseNode("expr", parser.curLine(1));      
+       expr.addChild("sumexpr", parser.curLine(3));
+       expr.getChild("sumexpr").addChild("dot").addChild("set", parser.curLine(3)).addChild(set);
+       expr.getChild("sumexpr").getChild("dot").addChild("relation", parser.curLine(1)).addChild(relation);
        RESULT = expr;
        :}