Public Member Functions | |
my_do_custom (ParserStore &rp, const ParameterDescription &par, int which_operator, bool param_on_left) | |
void | operator() (char const *, char const *) const |
Public Attributes | |
const ParameterDescription & | m_par |
int | m_which_operator |
bool | m_param_on_left |
ParserStore & | m_store |
Definition at line 199 of file CreateRules.cc.
my_do_custom< T >::my_do_custom | ( | ParserStore & | rp, | |
const ParameterDescription & | par, | |||
int | which_operator, | |||
bool | param_on_left | |||
) | [inline] |
Definition at line 201 of file CreateRules.cc.
00205 : mySemantic(rp) 00206 , m_par(par) 00207 , m_which_operator(which_operator) 00208 , m_param_on_left(param_on_left){};
void my_do_custom< T >::operator() | ( | char const * | , | |
char const * | ||||
) | const [inline] |
Definition at line 214 of file CreateRules.cc.
00214 { 00215 // This is a custom rule provided by the user. Call on his/her RuleFactor to make it. 00216 T val; 00217 m_store.popval(val); 00218 00219 assert(m_par.factory()); 00220 Rule* rule = m_par.factory()->createRule(m_par, m_which_operator, val, m_param_on_left); 00221 00222 assert(rule); 00223 m_store.mStackRules.push(rule); 00224 //cout << "STACK custom rule " << typeid(*rule).name() << " \"" << rule->name() << "\"" << endl; 00225 }
const ParameterDescription& my_do_custom< T >::m_par |
Definition at line 208 of file CreateRules.cc.
int my_do_custom< T >::m_which_operator |
Definition at line 211 of file CreateRules.cc.
bool my_do_custom< T >::m_param_on_left |
Definition at line 212 of file CreateRules.cc.
ParserStore& mySemantic::m_store [inherited] |
Definition at line 82 of file CreateRules.cc.