GNU Octave 7.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
pt-loop.cc
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 1996-2022 The Octave Project Developers
4//
5// See the file COPYRIGHT.md in the top-level directory of this
6// distribution or <https://octave.org/copyright/>.
7//
8// This file is part of Octave.
9//
10// Octave is free software: you can redistribute it and/or modify it
11// under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// Octave is distributed in the hope that it will be useful, but
16// WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18// GNU General Public License for more details.
19//
20// You should have received a copy of the GNU General Public License
21// along with Octave; see the file COPYING. If not, see
22// <https://www.gnu.org/licenses/>.
23//
24////////////////////////////////////////////////////////////////////////
25
26#if defined (HAVE_CONFIG_H)
27# include "config.h"
28#endif
29
30#include "pt-arg-list.h"
31#include "pt-exp.h"
32#include "pt-loop.h"
33#include "pt-stmt.h"
34
35namespace octave
36{
37 // While.
38
40 {
41 delete m_expr;
42 delete m_list;
43 delete m_lead_comm;
44 delete m_trail_comm;
45 }
46
47 // For.
48
50 {
51 delete m_lhs;
52 delete m_expr;
53 delete m_maxproc;
54 delete m_list;
55 delete m_lead_comm;
56 delete m_trail_comm;
57 }
58
60 {
61 delete m_lhs;
62 delete m_expr;
63 delete m_list;
64 delete m_lead_comm;
65 delete m_trail_comm;
66 }
67}
tree_statement_list * m_list
Definition: pt-loop.h:269
tree_expression * m_expr
Definition: pt-loop.h:266
tree_argument_list * m_lhs
Definition: pt-loop.h:263
comment_list * m_lead_comm
Definition: pt-loop.h:213
tree_expression * m_maxproc
Definition: pt-loop.h:207
tree_statement_list * m_list
Definition: pt-loop.h:210
tree_expression * m_expr
Definition: pt-loop.h:203
tree_expression * m_lhs
Definition: pt-loop.h:200
comment_list * m_trail_comm
Definition: pt-loop.h:216
comment_list * m_trail_comm
Definition: pt-loop.h:102
tree_expression * m_expr
Definition: pt-loop.h:93
tree_statement_list * m_list
Definition: pt-loop.h:96
comment_list * m_lead_comm
Definition: pt-loop.h:99