GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
libinterp
parse-tree
pt-jump.h
Go to the documentation of this file.
1
/*
2
3
Copyright (C) 1996-2013 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 3 of the License, or (at your
10
option) any 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, see
19
<http://www.gnu.org/licenses/>.
20
21
*/
22
23
#if !defined (octave_pt_jump_h)
24
#define octave_pt_jump_h 1
25
26
class
tree_walker
;
27
28
#include "
pt-cmd.h
"
29
#include "
symtab.h
"
30
31
// Break.
32
33
class
34
tree_break_command
:
public
tree_command
35
{
36
public
:
37
38
tree_break_command
(
int
l = -1,
int
c = -1)
39
:
tree_command
(l, c) { }
40
41
~tree_break_command
(
void
) { }
42
43
tree_command
*dup (
symbol_table::scope_id
scope,
44
symbol_table::context_id
context
)
const
;
45
46
void
accept (
tree_walker
& tw);
47
48
static
int
breaking
;
49
50
private
:
51
52
// No copying!
53
54
tree_break_command
(
const
tree_break_command
&);
55
56
tree_break_command
&
operator =
(
const
tree_break_command
&);
57
};
58
59
// Continue.
60
61
class
62
tree_continue_command
:
public
tree_command
63
{
64
public
:
65
66
tree_continue_command
(
int
l = -1,
int
c = -1)
67
:
tree_command
(l, c) { }
68
69
~tree_continue_command
(
void
) { }
70
71
tree_command
*dup (
symbol_table::scope_id
scope,
72
symbol_table::context_id
context
)
const
;
73
74
void
accept (
tree_walker
& tw);
75
76
static
int
continuing
;
77
78
private
:
79
80
// No copying!
81
82
tree_continue_command
(
const
tree_continue_command
&);
83
84
tree_continue_command
&
operator =
(
const
tree_continue_command
&);
85
};
86
87
// Return.
88
89
class
90
tree_return_command
:
public
tree_command
91
{
92
public
:
93
94
tree_return_command
(
int
l = -1,
int
c = -1)
95
:
tree_command
(l, c) { }
96
97
~tree_return_command
(
void
) { }
98
99
tree_command
*dup (
symbol_table::scope_id
scope,
100
symbol_table::context_id
context
)
const
;
101
102
void
accept (
tree_walker
& tw);
103
104
static
int
returning
;
105
106
private
:
107
108
// No copying!
109
110
tree_return_command
(
const
tree_return_command
&);
111
112
tree_return_command
&
operator =
(
const
tree_return_command
&);
113
};
114
115
#endif
Generated on Mon Dec 30 2013 03:04:38 for GNU Octave by
1.8.1.2