Esempio n. 1
0
 virtual bool traverse (const_node_stack &node_stack_,
     bool_stack &perform_op_stack_) const
 {
     perform_op_stack_.push (true);
     node_stack_.push (_next);
     return true;
 }
    virtual bool traverse (const_node_stack &node_stack_,
        bool_stack &perform_op_stack_) const
    {
        perform_op_stack_.push (true);

        switch (_right->what_type ())
        {
        case SEQUENCE:
        case SELECTION:
        case ITERATION:
            perform_op_stack_.push (false);
            break;
        default:
            break;
        }

        node_stack_.push (_right);
        node_stack_.push (_left);
        return true;
    }