++


         

UserQuery - 4


inline void

UserQuery::

evalWord( const string &query )

{

NameQuery *pq;

loc *ploc;

if ( ! _word_map->count( query ))

pq = new NameQuery( query );

else {

ploc = ( *_word_map )[ query ];

pq = new NameQuery( query, *ploc );

}

if ( _current_op.size() <= _paren )

_query_stack.push( pq );

else {

Query *pop = _current_op.top();

_current_op.pop();

pop->add_op( pq );

_query_stack.push( pop );

}

}

17.21

, UserQuery.

17.22

print() UserQuery. , .