00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #if !defined (octave_tree_cbinop_h)
00024 #define octave_tree_cbinop_h 1
00025
00026 #include <string>
00027
00028 class tree_walker;
00029
00030 class octave_value;
00031 class octave_value_list;
00032 class octave_lvalue;
00033
00034 #include "ov.h"
00035 #include "pt-binop.h"
00036 #include "symtab.h"
00037
00038
00039
00040 class
00041 tree_compound_binary_expression : public tree_binary_expression
00042 {
00043 public:
00044
00045 tree_compound_binary_expression (tree_expression *a, tree_expression *b,
00046 int l, int c,
00047 octave_value::binary_op t,
00048 tree_expression *ca, tree_expression *cb,
00049 octave_value::compound_binary_op ct)
00050 : tree_binary_expression (a, b, l, c, t), op_lhs (ca), op_rhs (cb),
00051 etype (ct) { }
00052
00053 octave_value rvalue1 (int nargout = 1);
00054
00055 octave_value::compound_binary_op cop_type (void) const { return etype; }
00056
00057 private:
00058
00059 tree_expression *op_lhs;
00060 tree_expression *op_rhs;
00061 octave_value::compound_binary_op etype;
00062 };
00063
00064
00065
00066 tree_binary_expression *
00067 maybe_compound_binary_expression (tree_expression *a, tree_expression *b,
00068 int l = -1, int c = -1,
00069 octave_value::binary_op t
00070 = octave_value::unknown_binary_op);
00071
00072 #endif
00073
00074
00075
00076
00077
00078