Mercurial > octave
annotate libinterp/parse-tree/pt-jump.h @ 22323:bac0d6f07a3e
maint: Update copyright notices for 2016.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 17 Aug 2016 01:05:19 -0400 |
parents | 1473547f50f5 |
children | 34ce5be04942 |
rev | line source |
---|---|
2982 | 1 /* |
2 | |
22323
bac0d6f07a3e
maint: Update copyright notices for 2016.
John W. Eaton <jwe@octave.org>
parents:
21244
diff
changeset
|
3 Copyright (C) 1996-2016 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 | |
20791
f7084eae3318
maint: Use Octave coding conventions for #if statements.
Rik <rik@octave.org>
parents:
19697
diff
changeset
|
23 #if ! defined (octave_pt_jump_h) |
17822
ebb3ef964372
maint: Use common #define syntax "octave_filename_h" in h_files.
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
24 #define octave_pt_jump_h 1 |
2982 | 25 |
21244
1473547f50f5
include octave-config.h in public header files
John W. Eaton <jwe@octave.org>
parents:
20791
diff
changeset
|
26 #include "octave-config.h" |
1473547f50f5
include octave-config.h in public header files
John W. Eaton <jwe@octave.org>
parents:
20791
diff
changeset
|
27 |
2982 | 28 class tree_walker; |
29 | |
4207 | 30 #include "pt-cmd.h" |
7336 | 31 #include "symtab.h" |
2982 | 32 |
33 // Break. | |
34 | |
35 class | |
4207 | 36 tree_break_command : public tree_command |
2982 | 37 { |
38 public: | |
39 | |
4207 | 40 tree_break_command (int l = -1, int c = -1) |
41 : tree_command (l, c) { } | |
2982 | 42 |
4207 | 43 ~tree_break_command (void) { } |
2982 | 44 |
7767
71f068b22fcc
scope and context fixes for function handles
John W. Eaton <jwe@octave.org>
parents:
7336
diff
changeset
|
45 tree_command *dup (symbol_table::scope_id scope, |
10313 | 46 symbol_table::context_id context) const; |
5861 | 47 |
2982 | 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 |
7767
71f068b22fcc
scope and context fixes for function handles
John W. Eaton <jwe@octave.org>
parents:
7336
diff
changeset
|
73 tree_command *dup (symbol_table::scope_id scope, |
10313 | 74 symbol_table::context_id context) const; |
5861 | 75 |
2982 | 76 void accept (tree_walker& tw); |
2985 | 77 |
78 static int continuing; | |
2988 | 79 |
80 private: | |
81 | |
82 // No copying! | |
83 | |
4207 | 84 tree_continue_command (const tree_continue_command&); |
2988 | 85 |
4207 | 86 tree_continue_command& operator = (const tree_continue_command&); |
2982 | 87 }; |
88 | |
89 // Return. | |
90 | |
91 class | |
4207 | 92 tree_return_command : public tree_command |
2982 | 93 { |
94 public: | |
95 | |
4207 | 96 tree_return_command (int l = -1, int c = -1) |
97 : tree_command (l, c) { } | |
2982 | 98 |
4207 | 99 ~tree_return_command (void) { } |
2982 | 100 |
7767
71f068b22fcc
scope and context fixes for function handles
John W. Eaton <jwe@octave.org>
parents:
7336
diff
changeset
|
101 tree_command *dup (symbol_table::scope_id scope, |
10313 | 102 symbol_table::context_id context) const; |
5861 | 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 |