2982
|
1 /* |
|
2 |
7017
|
3 Copyright (C) 1996, 1997, 2002, 2004, 2005, 2006, 2007 John W. Eaton |
2982
|
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 |
7016
|
9 Free Software Foundation; either version 3 of the License, or (at your |
|
10 option) any later version. |
2982
|
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 |
7016
|
18 along with Octave; see the file COPYING. If not, see |
|
19 <http://www.gnu.org/licenses/>. |
2982
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (octave_tree_jump_h) |
|
24 #define octave_tree_jump_h 1 |
|
25 |
|
26 class tree_walker; |
|
27 |
4207
|
28 #include "pt-cmd.h" |
2982
|
29 |
|
30 // Break. |
|
31 |
|
32 class |
4207
|
33 tree_break_command : public tree_command |
2982
|
34 { |
|
35 public: |
|
36 |
4207
|
37 tree_break_command (int l = -1, int c = -1) |
|
38 : tree_command (l, c) { } |
2982
|
39 |
4207
|
40 ~tree_break_command (void) { } |
2982
|
41 |
4207
|
42 void eval (void); |
2982
|
43 |
5861
|
44 tree_command *dup (symbol_table *); |
|
45 |
2982
|
46 void accept (tree_walker& tw); |
2985
|
47 |
|
48 static int breaking; |
2988
|
49 |
|
50 private: |
|
51 |
|
52 // No copying! |
|
53 |
4207
|
54 tree_break_command (const tree_break_command&); |
2988
|
55 |
4207
|
56 tree_break_command& operator = (const tree_break_command&); |
2982
|
57 }; |
|
58 |
|
59 // Continue. |
|
60 |
|
61 class |
4207
|
62 tree_continue_command : public tree_command |
2982
|
63 { |
|
64 public: |
|
65 |
4207
|
66 tree_continue_command (int l = -1, int c = -1) |
|
67 : tree_command (l, c) { } |
2982
|
68 |
4207
|
69 ~tree_continue_command (void) { } |
2982
|
70 |
4207
|
71 void eval (void); |
2982
|
72 |
5861
|
73 tree_command *dup (symbol_table *); |
|
74 |
2982
|
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 |
5861
|
102 tree_command *dup (symbol_table *); |
|
103 |
2982
|
104 void accept (tree_walker& tw); |
2985
|
105 |
|
106 static int returning; |
2988
|
107 |
|
108 private: |
|
109 |
|
110 // No copying! |
|
111 |
4207
|
112 tree_return_command (const tree_return_command&); |
2988
|
113 |
4207
|
114 tree_return_command& operator = (const tree_return_command&); |
2982
|
115 }; |
|
116 |
|
117 #endif |
|
118 |
|
119 /* |
|
120 ;;; Local Variables: *** |
|
121 ;;; mode: C++ *** |
|
122 ;;; End: *** |
|
123 */ |