--- trunk/src/mdParser/MDParser.g 2005/12/16 02:57:00 814 +++ trunk/src/mdParser/MDParser.g 2008/07/04 20:54:29 1275 @@ -32,10 +32,12 @@ tokens BOND = "bond"; BEND = "bend"; TORSION = "torsion"; + INVERSION = "inversion"; RIGIDBODY = "rigidBody"; CUTOFFGROUP = "cutoffGroup"; FRAGMENT = "fragment"; MEMBERS = "members"; + CENTER = "center"; POSITION = "position"; ORIENTATION = "orientation"; ENDBLOCK; @@ -109,6 +111,13 @@ torsionstatement : assignment | MEMBERS^ LPAREN! inttuple RPAREN! SEMICOLON! ; +inversionblock : INVERSION^ (LBRACKET! intConst! RBRACKET!)? LCURLY!(inversionstatement)* RCURLY {#RCURLY->setType(ENDBLOCK);} + ; + +inversionstatement : assignment + | CENTER^ LPAREN! intConst RPAREN! SEMICOLON! + ; + rigidbodyblock : RIGIDBODY^ LBRACKET! intConst RBRACKET! LCURLY!(rigidbodystatement)* RCURLY {#RCURLY->setType(ENDBLOCK);} ; @@ -457,7 +466,7 @@ EXPONENT // a couple protected methods to assist in matching floating point numbers protected EXPONENT - : ('e'|'E') ('+'|'-')? ('0'..'9')+ + : ('e'|'E'|'d'|'D') ('+'|'-')? ('0'..'9')+ ; protected