Mercurial > hg > octave-nkf
annotate src/pt-jump.h @ 12385:c468c5b902b3 release-3-4-x ss-3-3-92
version is now 3.3.92
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 06 Feb 2011 06:27:19 -0500 |
parents | fd0a3ac60b0e |
children | 72c96de7a403 |
rev | line source |
---|---|
2982 | 1 /* |
2 | |
11523 | 3 Copyright (C) 1996-2011 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" |
7336 | 29 #include "symtab.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 |
7767
71f068b22fcc
scope and context fixes for function handles
John W. Eaton <jwe@octave.org>
parents:
7336
diff
changeset
|
43 tree_command *dup (symbol_table::scope_id scope, |
10313 | 44 symbol_table::context_id context) const; |
5861 | 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 |
7767
71f068b22fcc
scope and context fixes for function handles
John W. Eaton <jwe@octave.org>
parents:
7336
diff
changeset
|
71 tree_command *dup (symbol_table::scope_id scope, |
10313 | 72 symbol_table::context_id context) const; |
5861 | 73 |
2982 | 74 void accept (tree_walker& tw); |
2985 | 75 |
76 static int continuing; | |
2988 | 77 |
78 private: | |
79 | |
80 // No copying! | |
81 | |
4207 | 82 tree_continue_command (const tree_continue_command&); |
2988 | 83 |
4207 | 84 tree_continue_command& operator = (const tree_continue_command&); |
2982 | 85 }; |
86 | |
87 // Return. | |
88 | |
89 class | |
4207 | 90 tree_return_command : public tree_command |
2982 | 91 { |
92 public: | |
93 | |
4207 | 94 tree_return_command (int l = -1, int c = -1) |
95 : tree_command (l, c) { } | |
2982 | 96 |
4207 | 97 ~tree_return_command (void) { } |
2982 | 98 |
7767
71f068b22fcc
scope and context fixes for function handles
John W. Eaton <jwe@octave.org>
parents:
7336
diff
changeset
|
99 tree_command *dup (symbol_table::scope_id scope, |
10313 | 100 symbol_table::context_id context) const; |
5861 | 101 |
2982 | 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 |