2982
|
1 /* |
|
2 |
|
3 Copyright (C) 1996, 1997 John W. Eaton |
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
5307
|
19 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
20 02110-1301, USA. |
2982
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_tree_jump_h) |
|
25 #define octave_tree_jump_h 1 |
|
26 |
|
27 class tree_walker; |
|
28 |
4207
|
29 #include "pt-cmd.h" |
2982
|
30 |
|
31 // Break. |
|
32 |
|
33 class |
4207
|
34 tree_break_command : public tree_command |
2982
|
35 { |
|
36 public: |
|
37 |
4207
|
38 tree_break_command (int l = -1, int c = -1) |
|
39 : tree_command (l, c) { } |
2982
|
40 |
4207
|
41 ~tree_break_command (void) { } |
2982
|
42 |
4207
|
43 void eval (void); |
2982
|
44 |
5861
|
45 tree_command *dup (symbol_table *); |
|
46 |
2982
|
47 void accept (tree_walker& tw); |
2985
|
48 |
|
49 static int breaking; |
2988
|
50 |
|
51 private: |
|
52 |
|
53 // No copying! |
|
54 |
4207
|
55 tree_break_command (const tree_break_command&); |
2988
|
56 |
4207
|
57 tree_break_command& operator = (const tree_break_command&); |
2982
|
58 }; |
|
59 |
|
60 // Continue. |
|
61 |
|
62 class |
4207
|
63 tree_continue_command : public tree_command |
2982
|
64 { |
|
65 public: |
|
66 |
4207
|
67 tree_continue_command (int l = -1, int c = -1) |
|
68 : tree_command (l, c) { } |
2982
|
69 |
4207
|
70 ~tree_continue_command (void) { } |
2982
|
71 |
4207
|
72 void eval (void); |
2982
|
73 |
5861
|
74 tree_command *dup (symbol_table *); |
|
75 |
2982
|
76 void accept (tree_walker& tw); |
2985
|
77 |
|
78 static int continuing; |
2988
|
79 |
|
80 private: |
|
81 |
|
82 // No copying! |
|
83 |
4207
|
84 tree_continue_command (const tree_continue_command&); |
2988
|
85 |
4207
|
86 tree_continue_command& operator = (const tree_continue_command&); |
2982
|
87 }; |
|
88 |
|
89 // Return. |
|
90 |
|
91 class |
4207
|
92 tree_return_command : public tree_command |
2982
|
93 { |
|
94 public: |
|
95 |
4207
|
96 tree_return_command (int l = -1, int c = -1) |
|
97 : tree_command (l, c) { } |
2982
|
98 |
4207
|
99 ~tree_return_command (void) { } |
2982
|
100 |
4207
|
101 void eval (void); |
2982
|
102 |
5861
|
103 tree_command *dup (symbol_table *); |
|
104 |
2982
|
105 void accept (tree_walker& tw); |
2985
|
106 |
|
107 static int returning; |
2988
|
108 |
|
109 private: |
|
110 |
|
111 // No copying! |
|
112 |
4207
|
113 tree_return_command (const tree_return_command&); |
2988
|
114 |
4207
|
115 tree_return_command& operator = (const tree_return_command&); |
2982
|
116 }; |
|
117 |
|
118 #endif |
|
119 |
|
120 /* |
|
121 ;;; Local Variables: *** |
|
122 ;;; mode: C++ *** |
|
123 ;;; End: *** |
|
124 */ |