void AST_op::dump(ostream &strm, int indentation){
    strm << setw(3) << line << ": ";
    dump_indentation(strm, indentation);
    strm << binary_operator() << " [" << types.types[type]->name << "]" << endl;
    
    left->dump(strm, indentation+1);
    right->dump(strm, indentation+1);
    
}
Exemple #2
0
 value::ptr_type value::operator +(const value& rhs) const
 {
     return (binary_operator(rhs, OP_ADD));
 }
Exemple #3
0
 value::ptr_type value::operator -(const value& rhs) const
 {
     return (binary_operator(rhs, OP_SUB));
 }
Exemple #4
0
 value::ptr_type value::operator <=(const value& rhs) const
 {
     return (binary_operator(rhs, OP_LESSER_EQUAL));
 }
Exemple #5
0
 value::ptr_type value::operator >=(const value& rhs) const
 {
     return (binary_operator(rhs, OP_GREATER_EQUAL));
 }
Exemple #6
0
 value::ptr_type value::operator !=(const value& rhs) const
 {
     return (binary_operator(rhs, OP_NOT_EQUAL));
 }
Exemple #7
0
 value::ptr_type value::operator /(const value& rhs) const
 {
     return (binary_operator(rhs, OP_DIV));
 }
Exemple #8
0
 value::ptr_type value::operator *(const value& rhs) const
 {
     return (binary_operator(rhs, OP_MUL));
 }