Mercurial > octave-nkf
annotate src/pt-jump.h @ 10313:f3b65e1ae355
untabify src header files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 11 Feb 2010 12:16:43 -0500 |
parents | cd96d29c5efa |
children | fd0a3ac60b0e |
rev | line source |
---|---|
2982 | 1 /* |
2 | |
8920 | 3 Copyright (C) 1996, 1997, 2002, 2004, 2005, 2006, 2007, 2008, 2009 |
4 John W. Eaton | |
2982 | 5 |
6 This file is part of Octave. | |
7 | |
8 Octave is free software; you can redistribute it and/or modify it | |
9 under the terms of the GNU General Public License as published by the | |
7016 | 10 Free Software Foundation; either version 3 of the License, or (at your |
11 option) any later version. | |
2982 | 12 |
13 Octave is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
7016 | 19 along with Octave; see the file COPYING. If not, see |
20 <http://www.gnu.org/licenses/>. | |
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" |
7336 | 30 #include "symtab.h" |
2982 | 31 |
32 // Break. | |
33 | |
34 class | |
4207 | 35 tree_break_command : public tree_command |
2982 | 36 { |
37 public: | |
38 | |
4207 | 39 tree_break_command (int l = -1, int c = -1) |
40 : tree_command (l, c) { } | |
2982 | 41 |
4207 | 42 ~tree_break_command (void) { } |
2982 | 43 |
7767
71f068b22fcc
scope and context fixes for function handles
John W. Eaton <jwe@octave.org>
parents:
7336
diff
changeset
|
44 tree_command *dup (symbol_table::scope_id scope, |
10313 | 45 symbol_table::context_id context) const; |
5861 | 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 |
7767
71f068b22fcc
scope and context fixes for function handles
John W. Eaton <jwe@octave.org>
parents:
7336
diff
changeset
|
72 tree_command *dup (symbol_table::scope_id scope, |
10313 | 73 symbol_table::context_id context) const; |
5861 | 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 |
7767
71f068b22fcc
scope and context fixes for function handles
John W. Eaton <jwe@octave.org>
parents:
7336
diff
changeset
|
100 tree_command *dup (symbol_table::scope_id scope, |
10313 | 101 symbol_table::context_id context) const; |
5861 | 102 |
2982 | 103 void accept (tree_walker& tw); |
2985 | 104 |
105 static int returning; | |
2988 | 106 |
107 private: | |
108 | |
109 // No copying! | |
110 | |
4207 | 111 tree_return_command (const tree_return_command&); |
2988 | 112 |
4207 | 113 tree_return_command& operator = (const tree_return_command&); |
2982 | 114 }; |
115 | |
116 #endif |