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 |
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (octave_tree_jump_h) |
|
24 #define octave_tree_jump_h 1 |
|
25 |
4192
|
26 #if defined (__GNUG__) && defined (USE_PRAGMA_INTERFACE_IMPLEMENTATION) |
2982
|
27 #pragma interface |
|
28 #endif |
|
29 |
|
30 class tree_walker; |
|
31 |
4207
|
32 #include "pt-cmd.h" |
2982
|
33 |
|
34 // Break. |
|
35 |
|
36 class |
4207
|
37 tree_break_command : public tree_command |
2982
|
38 { |
|
39 public: |
|
40 |
4207
|
41 tree_break_command (int l = -1, int c = -1) |
|
42 : tree_command (l, c) { } |
2982
|
43 |
4207
|
44 ~tree_break_command (void) { } |
2982
|
45 |
4207
|
46 void eval (void); |
2982
|
47 |
|
48 void accept (tree_walker& tw); |
2985
|
49 |
|
50 static int breaking; |
2988
|
51 |
|
52 private: |
|
53 |
|
54 // No copying! |
|
55 |
4207
|
56 tree_break_command (const tree_break_command&); |
2988
|
57 |
4207
|
58 tree_break_command& operator = (const tree_break_command&); |
2982
|
59 }; |
|
60 |
|
61 // Continue. |
|
62 |
|
63 class |
4207
|
64 tree_continue_command : public tree_command |
2982
|
65 { |
|
66 public: |
|
67 |
4207
|
68 tree_continue_command (int l = -1, int c = -1) |
|
69 : tree_command (l, c) { } |
2982
|
70 |
4207
|
71 ~tree_continue_command (void) { } |
2982
|
72 |
4207
|
73 void eval (void); |
2982
|
74 |
|
75 void accept (tree_walker& tw); |
2985
|
76 |
|
77 static int continuing; |
2988
|
78 |
|
79 private: |
|
80 |
|
81 // No copying! |
|
82 |
4207
|
83 tree_continue_command (const tree_continue_command&); |
2988
|
84 |
4207
|
85 tree_continue_command& operator = (const tree_continue_command&); |
2982
|
86 }; |
|
87 |
|
88 // Return. |
|
89 |
|
90 class |
4207
|
91 tree_return_command : public tree_command |
2982
|
92 { |
|
93 public: |
|
94 |
4207
|
95 tree_return_command (int l = -1, int c = -1) |
|
96 : tree_command (l, c) { } |
2982
|
97 |
4207
|
98 ~tree_return_command (void) { } |
2982
|
99 |
4207
|
100 void eval (void); |
2982
|
101 |
|
102 void accept (tree_walker& tw); |
2985
|
103 |
|
104 static int returning; |
2988
|
105 |
|
106 private: |
|
107 |
|
108 // No copying! |
|
109 |
4207
|
110 tree_return_command (const tree_return_command&); |
2988
|
111 |
4207
|
112 tree_return_command& operator = (const tree_return_command&); |
2982
|
113 }; |
|
114 |
|
115 #endif |
|
116 |
|
117 /* |
|
118 ;;; Local Variables: *** |
|
119 ;;; mode: C++ *** |
|
120 ;;; End: *** |
|
121 */ |