GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
pt-select.cc
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 1996-2018 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
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License 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 <https://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if defined (HAVE_CONFIG_H)
24 # include "config.h"
25 #endif
26 
27 #include "pt-select.h"
28 #include "pt-stmt.h"
29 
30 namespace octave
31 {
32  // If clauses.
33 
35  {
36  delete m_expr;
37  delete m_list;
38  delete m_lead_comm;
39  }
40 
41  // If.
42 
44  {
45  delete m_list;
46  delete m_lead_comm;
47  delete m_trail_comm;
48  }
49 
50  // Switch cases.
51 
53  {
54  delete m_label;
55  delete m_list;
56  delete m_lead_comm;
57  }
58 
59  // Switch.
60 
62  {
63  delete m_expr;
64  delete m_list;
65  delete m_lead_comm;
66  delete m_trail_comm;
67  }
68 }
tree_expression * m_label
Definition: pt-select.h:205
comment_list * m_lead_comm
Definition: pt-select.h:157
tree_switch_case_list * m_list
Definition: pt-select.h:285
comment_list * m_lead_comm
Definition: pt-select.h:288
comment_list * m_lead_comm
Definition: pt-select.h:86
tree_expression * m_expr
Definition: pt-select.h:282
comment_list * m_trail_comm
Definition: pt-select.h:160
tree_expression * m_expr
Definition: pt-select.h:80
tree_statement_list * m_list
Definition: pt-select.h:83
comment_list * m_trail_comm
Definition: pt-select.h:291
comment_list * m_lead_comm
Definition: pt-select.h:211
tree_statement_list * m_list
Definition: pt-select.h:208
tree_if_command_list * m_list
Definition: pt-select.h:154