--- trunk/src/mdParser/MDParser.g 2009/11/25 20:02:06 1390 +++ branches/development/src/mdParser/MDParser.g 2012/08/09 15:52:59 1776 @@ -41,6 +41,9 @@ tokens CENTER = "center"; POSITION = "position"; ORIENTATION = "orientation"; + FLUCQ = "flucQ"; + RNEMD = "RNEMD"; + MINIMIZER = "minimizer"; ENDBLOCK; } @@ -49,17 +52,21 @@ statement : assignment ; statement : assignment - | componentblock - | moleculeblock - | zconstraintblock - | restraintblock - ; - + | componentblock + | moleculeblock + | zconstraintblock + | restraintblock + | flucqblock + | rnemdblock + | minimizerblock + ; + assignment : ID ASSIGNEQUAL^ constant SEMICOLON! ; constant : intConst - | floatConst + | floatConst + | vectorConst | ID | StringLiteral ; @@ -72,6 +79,15 @@ restraintblock : RESTRAINT^ LCURLY! (assignment)* RCU restraintblock : RESTRAINT^ LCURLY! (assignment)* RCURLY {#RCURLY->setType(ENDBLOCK);} ; + +flucqblock : FLUCQ^ LCURLY! (assignment)* RCURLY {#RCURLY->setType(ENDBLOCK);} + ; + +rnemdblock : RNEMD^ LCURLY! (assignment)* RCURLY {#RCURLY->setType(ENDBLOCK);} + ; + +minimizerblock : MINIMIZER^ LCURLY! (assignment)* RCURLY {#RCURLY->setType(ENDBLOCK);} + ; moleculeblock : MOLECULE^ LCURLY! (moleculestatement)* RCURLY {#RCURLY->setType(ENDBLOCK);} ; @@ -168,7 +184,11 @@ floatConst NUM_FLOAT | NUM_DOUBLE ; - +protected +vectorConst + : + LPAREN^ doubleNumber COMMA doubleNumber COMMA doubleNumber RPAREN + ; class MDLexer extends Lexer;