X-Git-Url: http://plrg.eecs.uci.edu/git/?p=repair.git;a=blobdiff_plain;f=Repair%2FRepairCompiler%2FMCC%2FTDL.cup;h=6436236423a89f9b77e46b6021cc4c1314fcdbc4;hp=c905958facbef2b5e6538b65a9098587e489728d;hb=494b62b8ddfc3c3a7282aab4ad96d0e10fb1d1bc;hpb=38706bcbe3752535688ea2a5817e20c71315aa28 diff --git a/Repair/RepairCompiler/MCC/TDL.cup b/Repair/RepairCompiler/MCC/TDL.cup index c905958..6436236 100755 --- a/Repair/RepairCompiler/MCC/TDL.cup +++ b/Repair/RepairCompiler/MCC/TDL.cup @@ -247,6 +247,17 @@ structure ::= structure.addChild(lf); RESULT = structure; :} + | + STRUCTURE ID:typename optsubtype:subtype OPENBRACE CLOSEBRACE + {: + debugMessage(PRODSTRING); + ParseNode structure = new ParseNode("structure", parser.curLine(6)); + structure.addChild("name", parser.curLine(5)).addChild(typename); + if (subtype != null) { + structure.addChild(subtype); + } + RESULT = structure; + :} | ID:type MULT ID:name SEMICOLON {: