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

Comparing:
trunk/src/mdParser/MDTreeParser.g (file contents), Revision 963 by tim, Wed May 17 21:51:42 2006 UTC vs.
branches/development/src/mdParser/MDTreeParser.g (file contents), Revision 1746 by gezelter, Wed Jun 6 02:18:54 2012 UTC

# Line 4 | Line 4 | using namespace std;
4   #include "io/Globals.hpp"
5   #include "utils/StringUtils.hpp"
6   using namespace std;
7 < using namespace oopse;
7 > using namespace OpenMD;
8   }
9   options
10    {
# Line 15 | Line 15 | options
15  
16   options
17   {
18 <        k = 3;
18 >        k = 1;
19          importVocab = MD;
20   }
21   {
# Line 35 | Line 35 | statement : assignment
35          ;
36  
37   statement : assignment
38 <          | componentblock
39 <          | moleculeblock
40 <          | zconstraintblock
41 <          ;
38 >    | componentblock
39 >    | moleculeblock
40 >    | zconstraintblock
41 >    | restraintblock
42 >    | flucqblock
43 >    | rnemdblock
44 >    | minimizerblock
45 >    ;
46  
43
47   assignment  : #(ASSIGNEQUAL id:ID constant[#id]) //{blockStack.top()->assign(#ID->getText(),);}
48              ;
49              
# Line 68 | Line 71 | zconstraintblock  : #(ZCONSTRAINT {ZConsStamp* currZCo
71                          (assignment)*
72                           ENDBLOCK ) {blockStack.top()->validate();blockStack.pop(); currConf->addZConsStamp(currZConsStamp);}
73                    ;
74 +
75 + restraintblock  : #(RESTRAINT {RestraintStamp* currRestraintStamp = new RestraintStamp(); blockStack.push(currRestraintStamp);}
76 +                        (assignment)*
77 +                         ENDBLOCK ) {blockStack.top()->validate();blockStack.pop(); currConf->addRestraintStamp(currRestraintStamp);}
78 +                  ;
79    
80 + flucqblock  : #(FLUCQ  {FluctuatingChargeParameters* flucQpars = new FluctuatingChargeParameters(); blockStack.push(flucQpars);}
81 +                      (assignment)*
82 +                       ENDBLOCK ) {blockStack.top()->validate();blockStack.pop(); currConf->addFluctuatingChargeParameters(flucQpars);}
83 +                ;
84 +
85 + rnemdblock  : #(RNEMD  {RNEMDParameters* rnemdPars = new RNEMDParameters(); blockStack.push(rnemdPars);}
86 +                      (assignment)*
87 +                       ENDBLOCK ) {blockStack.top()->validate();blockStack.pop(); currConf->addRNEMDParameters(rnemdPars);}
88 +                ;
89 +
90 + minimizerblock  : #(MINIMIZER  {MinimizerParameters* minimizerPars = new MinimizerParameters(); blockStack.push(minimizerPars);}
91 +                      (assignment)*
92 +                       ENDBLOCK ) {blockStack.top()->validate();blockStack.pop(); currConf->addMinimizerParameters(minimizerPars);}
93 +                ;
94 +
95 +
96   moleculeblock : #(MOLECULE {MoleculeStamp* currMoleculeStamp = new MoleculeStamp(); blockStack.push(currMoleculeStamp);}
97                      (moleculestatement)*
98                       ENDBLOCK ) {blockStack.top()->validate(); blockStack.pop(); currConf->addMoleculeStamp(currMoleculeStamp);}
# Line 79 | Line 103 | moleculestatement : assignment
103                    | bondblock
104                    | bendblock
105                    | torsionblock
106 +                  | inversionblock
107                    | rigidbodyblock
108                    | cutoffgroupblock
109                    | fragmentblock
# Line 166 | Line 191 | torsionstatement
191                | #(MEMBERS ivec=inttuple) {currTorsionStamp->setMembers(ivec);}
192                ;
193  
194 + inversionblock  : #(INVERSION {InversionStamp* currInversionStamp = new InversionStamp(); blockStack.push(currInversionStamp);}
195 +                   (inversionstatement)*
196 +                    ENDBLOCK )  {
197 +                                  blockStack.top()->validate();
198 +                                  blockStack.pop();
199 +                                  MoleculeStamp* currMoleculeStamp = static_cast<MoleculeStamp*>(blockStack.top());
200 +                                  currMoleculeStamp->addInversionStamp(currInversionStamp);
201 +                                }
202 +          ;
203 +
204 + inversionstatement
205 + {
206 +  int icent;
207 +  InversionStamp* currInversionStamp = static_cast<InversionStamp*>(blockStack.top());
208 + }  
209 +              : assignment
210 +              | #(CENTER icent=intConst) {currInversionStamp->setCenter(icent);}
211 +              ;
212 +
213   rigidbodyblock
214   {
215   int index;

Comparing:
trunk/src/mdParser/MDTreeParser.g (property svn:keywords), Revision 963 by tim, Wed May 17 21:51:42 2006 UTC vs.
branches/development/src/mdParser/MDTreeParser.g (property svn:keywords), Revision 1746 by gezelter, Wed Jun 6 02:18:54 2012 UTC

# Line 0 | Line 1
1 + Author Id Revision Date

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines