comparison src/pt-binop.h @ 4023:ef3caf27cb9c

[project @ 2002-08-07 06:54:41 by jwe]
author jwe
date Wed, 07 Aug 2002 06:54:41 +0000
parents f9ea3dcf58ee
children 6e86256e9c54
comparison
equal deleted inserted replaced
4022:789c4112a37d 4023:ef3caf27cb9c
60 { 60 {
61 delete op_lhs; 61 delete op_lhs;
62 delete op_rhs; 62 delete op_rhs;
63 } 63 }
64 64
65 bool is_binary_expression (void) const { return true; }
66
65 bool rvalue_ok (void) const { return true; } 67 bool rvalue_ok (void) const { return true; }
66 68
67 octave_value rvalue (void); 69 octave_value rvalue (void);
68 70
69 octave_value_list rvalue (int nargout); 71 octave_value_list rvalue (int nargout);
70 72
71 void eval_error (void); 73 void eval_error (void);
72 74
73 std::string oper (void) const; 75 std::string oper (void) const;
76
77 octave_value::binary_op op_type (void) const { return etype; }
74 78
75 tree_expression *lhs (void) { return op_lhs; } 79 tree_expression *lhs (void) { return op_lhs; }
76 tree_expression *rhs (void) { return op_rhs; } 80 tree_expression *rhs (void) { return op_rhs; }
77 81
78 void accept (tree_walker& tw); 82 void accept (tree_walker& tw);
116 int l = -1, int c = -1, type t = unknown) 120 int l = -1, int c = -1, type t = unknown)
117 : tree_binary_expression (a, b, l, c), etype (t) { } 121 : tree_binary_expression (a, b, l, c), etype (t) { }
118 122
119 ~tree_boolean_expression (void) { } 123 ~tree_boolean_expression (void) { }
120 124
125 bool is_boolean_expression (void) const { return true; }
126
121 bool rvalue_ok (void) const { return true; } 127 bool rvalue_ok (void) const { return true; }
122 128
123 octave_value rvalue (void); 129 octave_value rvalue (void);
124 130
125 octave_value_list rvalue (int nargout); 131 octave_value_list rvalue (int nargout);
126 132
127 std::string oper (void) const; 133 std::string oper (void) const;
134
135 type op_type (void) const { return etype; }
128 136
129 private: 137 private:
130 138
131 // The type of the expression. 139 // The type of the expression.
132 type etype; 140 type etype;