Public Member Functions | |
my_do_or (ParserStore &rp) | |
void | operator() (char const *a, char const *b) const |
Public Attributes | |
ParserStore & | m_store |
Definition at line 256 of file CreateRules.cc.
my_do_or::my_do_or | ( | ParserStore & | rp | ) | [inline] |
void my_do_or::operator() | ( | char const * | a, | |
char const * | b | |||
) | const [inline] |
Definition at line 259 of file CreateRules.cc.
00259 { 00260 00261 //cout<<"string a: "<<a<<endl; 00262 //cout<<"string b: "<<b<<endl; 00263 00264 string s(a,b); 00265 00266 assert(m_store.mStackRules.size()>=2); 00267 Rule* rule2 = m_store.mStackRules.top(); 00268 m_store.mStackRules.pop(); 00269 00270 Rule* rule1 = m_store.mStackRules.top(); 00271 m_store.mStackRules.pop(); 00272 00273 string name=rule1->name(); 00274 name.append(" "); 00275 name.append(s); 00276 00277 Rule* outRule = new OrRule(name,rule1,rule2); 00278 //cout << "STACK or-rule composed of " << rule1->name() << " and " << rule2->name() << std::endl; 00279 00280 m_store.mStackRules.push(outRule); 00281 }
ParserStore& mySemantic::m_store [inherited] |
Definition at line 82 of file CreateRules.cc.