--- trunk/src/mdParser/MDParser.g 2009/08/25 14:54:38 1359 +++ trunk/src/mdParser/MDParser.g 2009/09/07 16:31:51 1360 @@ -28,6 +28,7 @@ tokens COMPONENT = "component"; MOLECULE = "molecule"; ZCONSTRAINT = "zconstraint"; + RESTRAINT = "restraint"; ATOM = "atom"; BOND = "bond"; BEND = "bend"; @@ -51,6 +52,7 @@ statement : assignment | componentblock | moleculeblock | zconstraintblock + | restraintblock ; assignment : ID ASSIGNEQUAL^ constant SEMICOLON! @@ -67,6 +69,9 @@ zconstraintblock : ZCONSTRAINT^ LCURLY! (assignment)* zconstraintblock : ZCONSTRAINT^ LCURLY! (assignment)* RCURLY {#RCURLY->setType(ENDBLOCK);} ; + +restraintblock : RESTRAINT^ LCURLY! (assignment)* RCURLY {#RCURLY->setType(ENDBLOCK);} + ; moleculeblock : MOLECULE^ LCURLY! (moleculestatement)* RCURLY {#RCURLY->setType(ENDBLOCK);} ;