diff src/pt-jump.h @ 4207:fa3482b34599

[project @ 2002-12-03 18:22:05 by jwe]
author jwe
date Tue, 03 Dec 2002 18:22:51 +0000
parents 5719210fff4c
children e35b034d3523
line wrap: on
line diff
--- a/src/pt-jump.h	Fri Nov 29 20:13:01 2002 +0000
+++ b/src/pt-jump.h	Tue Dec 03 18:22:51 2002 +0000
@@ -29,25 +29,21 @@
 
 class tree_walker;
 
-#include "pt-exp.h"
+#include "pt-cmd.h"
 
 // Break.
 
 class
-tree_break_expression : public tree_expression
+tree_break_command : public tree_command
 {
 public:
 
-  tree_break_expression (int l = -1, int c = -1)
-    : tree_expression (l, c) { }
-
-  ~tree_break_expression (void) { }
+  tree_break_command (int l = -1, int c = -1)
+    : tree_command (l, c) { }
 
-  bool rvalue_ok (void) { return true; }
+  ~tree_break_command (void) { }
 
-  octave_value rvalue (void);
-
-  octave_value_list rvalue (int nargout) { return rvalue (); }
+  void eval (void);
 
   void accept (tree_walker& tw);
 
@@ -57,28 +53,24 @@
 
   // No copying!
 
-  tree_break_expression (const tree_break_expression&);
+  tree_break_command (const tree_break_command&);
 
-  tree_break_expression& operator = (const tree_break_expression&);
+  tree_break_command& operator = (const tree_break_command&);
 };
 
 // Continue.
 
 class
-tree_continue_expression : public tree_expression
+tree_continue_command : public tree_command
 {
 public:
 
-  tree_continue_expression (int l = -1, int c = -1)
-    : tree_expression (l, c) { }
-
-  ~tree_continue_expression (void) { }
+  tree_continue_command (int l = -1, int c = -1)
+    : tree_command (l, c) { }
 
-  bool rvalue_ok (void) { return true; }
+  ~tree_continue_command (void) { }
 
-  octave_value rvalue (void);
-
-  octave_value_list rvalue (int nargout) { return rvalue (); }
+  void eval (void);
 
   void accept (tree_walker& tw);
 
@@ -88,28 +80,24 @@
 
   // No copying!
 
-  tree_continue_expression (const tree_continue_expression&);
+  tree_continue_command (const tree_continue_command&);
 
-  tree_continue_expression& operator = (const tree_continue_expression&);
+  tree_continue_command& operator = (const tree_continue_command&);
 };
 
 // Return.
 
 class
-tree_return_expression : public tree_expression
+tree_return_command : public tree_command
 {
 public:
 
-  tree_return_expression (int l = -1, int c = -1)
-    : tree_expression (l, c) { }
-
-  ~tree_return_expression (void) { }
+  tree_return_command (int l = -1, int c = -1)
+    : tree_command (l, c) { }
 
-  bool rvalue_ok (void) { return true; }
+  ~tree_return_command (void) { }
 
-  octave_value rvalue (void);
-
-  octave_value_list rvalue (int nargout) { return rvalue (); }
+  void eval (void);
 
   void accept (tree_walker& tw);
 
@@ -119,9 +107,9 @@
 
   // No copying!
 
-  tree_return_expression (const tree_return_expression&);
+  tree_return_command (const tree_return_command&);
 
-  tree_return_expression& operator = (const tree_return_expression&);
+  tree_return_command& operator = (const tree_return_command&);
 };
 
 #endif