GNU Octave
4.0.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-2015 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
pt-cmd.h
tree_continue_command::~tree_continue_command
~tree_continue_command(void)
Definition:
pt-jump.h:69
tree_continue_command::continuing
static int continuing
Definition:
pt-jump.h:76
tree_command
Definition:
pt-cmd.h:37
symtab.h
tree_break_command::breaking
static int breaking
Definition:
pt-jump.h:48
context
static llvm::LLVMContext & context
Definition:
jit-typeinfo.cc:76
tree_return_command
Definition:
pt-jump.h:89
tree_break_command::~tree_break_command
~tree_break_command(void)
Definition:
pt-jump.h:41
tree_continue_command::tree_continue_command
tree_continue_command(int l=-1, int c=-1)
Definition:
pt-jump.h:66
tree_walker
Definition:
pt-walk.h:87
tree_return_command::tree_return_command
tree_return_command(int l=-1, int c=-1)
Definition:
pt-jump.h:94
tree_return_command::returning
static int returning
Definition:
pt-jump.h:104
tree_break_command
Definition:
pt-jump.h:33
symbol_table::context_id
size_t context_id
Definition:
symtab.h:51
int
tree_break_command::tree_break_command
tree_break_command(int l=-1, int c=-1)
Definition:
pt-jump.h:38
tree_return_command::~tree_return_command
~tree_return_command(void)
Definition:
pt-jump.h:97
tree_walker::operator=
tree_walker & operator=(const tree_walker &)
tree_continue_command
Definition:
pt-jump.h:61
Generated on Thu Jun 4 2015 23:30:20 for GNU Octave by
1.8.8