diff 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
line wrap: on
line diff
--- a/src/pt-binop.h	Tue Aug 06 03:42:41 2002 +0000
+++ b/src/pt-binop.h	Wed Aug 07 06:54:41 2002 +0000
@@ -62,6 +62,8 @@
       delete op_rhs;
     }
 
+  bool is_binary_expression (void) const { return true; }
+
   bool rvalue_ok (void) const { return true; }
 
   octave_value rvalue (void);
@@ -72,6 +74,8 @@
 
   std::string oper (void) const;
 
+  octave_value::binary_op op_type (void) const { return etype; }
+
   tree_expression *lhs (void) { return op_lhs; }
   tree_expression *rhs (void) { return op_rhs; }
 
@@ -118,6 +122,8 @@
 
   ~tree_boolean_expression (void) { }
 
+  bool is_boolean_expression (void) const { return true; }
+
   bool rvalue_ok (void) const { return true; }
 
   octave_value rvalue (void);
@@ -126,6 +132,8 @@
 
   std::string oper (void) const;
 
+  type op_type (void) const { return etype; }
+
 private:
 
   // The type of the expression.