ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/mdParser/MDParser.g
(Generate patch)

Comparing trunk/src/mdParser/MDParser.g (file contents):
Revision 848 by gezelter, Wed Jan 11 23:06:08 2006 UTC vs.
Revision 1277 by gezelter, Mon Jul 14 12:35:58 2008 UTC

# Line 32 | Line 32 | tokens
32    BOND        = "bond";
33    BEND        = "bend";
34    TORSION     = "torsion";
35 +  INVERSION   = "inversion";
36    RIGIDBODY   = "rigidBody";
37    CUTOFFGROUP = "cutoffGroup";
38    FRAGMENT    = "fragment";
39    MEMBERS     = "members";
40 +  CENTER      = "center";
41    POSITION    = "position";
42    ORIENTATION = "orientation";
43    ENDBLOCK;
# Line 74 | Line 76 | moleculestatement : assignment
76                    | bondblock
77                    | bendblock
78                    | torsionblock
79 +                  | inversionblock
80                    | rigidbodyblock
81                    | cutoffgroupblock
82                    | fragmentblock
# Line 107 | Line 110 | torsionstatement  : assignment
110  
111   torsionstatement  : assignment
112                | MEMBERS^ LPAREN! inttuple RPAREN! SEMICOLON!
113 +              ;
114 +
115 + inversionblock  : INVERSION^ (LBRACKET! intConst! RBRACKET!)?  LCURLY!(inversionstatement)* RCURLY {#RCURLY->setType(ENDBLOCK);}
116 +          ;
117 +
118 + inversionstatement  : assignment
119 +              | CENTER^ LPAREN! intConst RPAREN! SEMICOLON!
120                ;
121  
122   rigidbodyblock  : RIGIDBODY^  LBRACKET! intConst RBRACKET! LCURLY!(rigidbodystatement)* RCURLY {#RCURLY->setType(ENDBLOCK);}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines