Public Member Functions | |
my_do_and (ParserStore &rp) | |
void | operator() (char const *a, char const *b) const |
Public Attributes | |
ParserStore & | m_store |
Definition at line 228 of file CreateRules.cc.
my_do_and::my_do_and | ( | ParserStore & | rp | ) | [inline] |
void my_do_and::operator() | ( | char const * | a, | |
char const * | b | |||
) | const [inline] |
Definition at line 231 of file CreateRules.cc.
00231 { 00232 00233 //cout<<"string a: "<<a<<endl; 00234 //cout<<"string b: "<<b<<endl; 00235 00236 string s(a,b); 00237 00238 assert(m_store.mStackRules.size()>=2); 00239 Rule* rule2 = m_store.mStackRules.top(); 00240 m_store.mStackRules.pop(); 00241 00242 Rule* rule1 = m_store.mStackRules.top(); 00243 m_store.mStackRules.pop(); 00244 00245 string name=rule1->name(); 00246 name.append(" "); 00247 name.append(s); 00248 00249 Rule* outRule = new AndRule(name,rule1,rule2); 00250 //cout << "STACK and-rule composed of " << rule1->name() << " and " << rule2->name() << std::endl; 00251 00252 m_store.mStackRules.push(outRule); 00253 }
ParserStore& mySemantic::m_store [inherited] |
Definition at line 82 of file CreateRules.cc.