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 |
|
45 void accept (tree_walker& tw); |
2985
|
46 |
|
47 static int breaking; |
2988
|
48 |
|
49 private: |
|
50 |
|
51 // No copying! |
|
52 |
4207
|
53 tree_break_command (const tree_break_command&); |
2988
|
54 |
4207
|
55 tree_break_command& operator = (const tree_break_command&); |
2982
|
56 }; |
|
57 |
|
58 // Continue. |
|
59 |
|
60 class |
4207
|
61 tree_continue_command : public tree_command |
2982
|
62 { |
|
63 public: |
|
64 |
4207
|
65 tree_continue_command (int l = -1, int c = -1) |
|
66 : tree_command (l, c) { } |
2982
|
67 |
4207
|
68 ~tree_continue_command (void) { } |
2982
|
69 |
4207
|
70 void eval (void); |
2982
|
71 |
|
72 void accept (tree_walker& tw); |
2985
|
73 |
|
74 static int continuing; |
2988
|
75 |
|
76 private: |
|
77 |
|
78 // No copying! |
|
79 |
4207
|
80 tree_continue_command (const tree_continue_command&); |
2988
|
81 |
4207
|
82 tree_continue_command& operator = (const tree_continue_command&); |
2982
|
83 }; |
|
84 |
|
85 // Return. |
|
86 |
|
87 class |
4207
|
88 tree_return_command : public tree_command |
2982
|
89 { |
|
90 public: |
|
91 |
4207
|
92 tree_return_command (int l = -1, int c = -1) |
|
93 : tree_command (l, c) { } |
2982
|
94 |
4207
|
95 ~tree_return_command (void) { } |
2982
|
96 |
4207
|
97 void eval (void); |
2982
|
98 |
|
99 void accept (tree_walker& tw); |
2985
|
100 |
|
101 static int returning; |
2988
|
102 |
|
103 private: |
|
104 |
|
105 // No copying! |
|
106 |
4207
|
107 tree_return_command (const tree_return_command&); |
2988
|
108 |
4207
|
109 tree_return_command& operator = (const tree_return_command&); |
2982
|
110 }; |
|
111 |
|
112 #endif |
|
113 |
|
114 /* |
|
115 ;;; Local Variables: *** |
|
116 ;;; mode: C++ *** |
|
117 ;;; End: *** |
|
118 */ |