예제 #1
0
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);
    
}
예제 #2
0
파일: value.cpp 프로젝트: sharkone/asl
 value::ptr_type value::operator +(const value& rhs) const
 {
     return (binary_operator(rhs, OP_ADD));
 }
예제 #3
0
파일: value.cpp 프로젝트: sharkone/asl
 value::ptr_type value::operator -(const value& rhs) const
 {
     return (binary_operator(rhs, OP_SUB));
 }
예제 #4
0
파일: value.cpp 프로젝트: sharkone/asl
 value::ptr_type value::operator <=(const value& rhs) const
 {
     return (binary_operator(rhs, OP_LESSER_EQUAL));
 }
예제 #5
0
파일: value.cpp 프로젝트: sharkone/asl
 value::ptr_type value::operator >=(const value& rhs) const
 {
     return (binary_operator(rhs, OP_GREATER_EQUAL));
 }
예제 #6
0
파일: value.cpp 프로젝트: sharkone/asl
 value::ptr_type value::operator !=(const value& rhs) const
 {
     return (binary_operator(rhs, OP_NOT_EQUAL));
 }
예제 #7
0
파일: value.cpp 프로젝트: sharkone/asl
 value::ptr_type value::operator /(const value& rhs) const
 {
     return (binary_operator(rhs, OP_DIV));
 }
예제 #8
0
파일: value.cpp 프로젝트: sharkone/asl
 value::ptr_type value::operator *(const value& rhs) const
 {
     return (binary_operator(rhs, OP_MUL));
 }