Mercurial > octave
annotate libinterp/parse-tree/pt-id.h @ 33634:4a70f390c85e default tip @
maint: Merge stable to default.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 28 May 2024 15:25:54 +0200 |
parents | d422992b5483 |
children |
rev | line source |
---|---|
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
1 //////////////////////////////////////////////////////////////////////// |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
2 // |
32632
2e484f9f1f18
maint: update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents:
31855
diff
changeset
|
3 // Copyright (C) 1996-2024 The Octave Project Developers |
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
4 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
5 // See the file COPYRIGHT.md in the top-level directory of this |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
6 // distribution or <https://octave.org/copyright/>. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
7 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
8 // This file is part of Octave. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
9 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
10 // Octave is free software: you can redistribute it and/or modify it |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
11 // under the terms of the GNU General Public License as published by |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
12 // the Free Software Foundation, either version 3 of the License, or |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
13 // (at your option) any later version. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
14 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
15 // Octave is distributed in the hope that it will be useful, but |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
16 // WITHOUT ANY WARRANTY; without even the implied warranty of |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
18 // GNU General Public License for more details. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
19 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
20 // You should have received a copy of the GNU General Public License |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
21 // along with Octave; see the file COPYING. If not, see |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
22 // <https://www.gnu.org/licenses/>. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
23 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
24 //////////////////////////////////////////////////////////////////////// |
2887 | 25 |
20791
f7084eae3318
maint: Use Octave coding conventions for #if statements.
Rik <rik@octave.org>
parents:
20542
diff
changeset
|
26 #if ! defined (octave_pt_id_h) |
17822
ebb3ef964372
maint: Use common #define syntax "octave_filename_h" in h_files.
Rik <rik@octave.org>
parents:
17787
diff
changeset
|
27 #define octave_pt_id_h 1 |
2887 | 28 |
21244
1473547f50f5
include octave-config.h in public header files
John W. Eaton <jwe@octave.org>
parents:
20791
diff
changeset
|
29 #include "octave-config.h" |
1473547f50f5
include octave-config.h in public header files
John W. Eaton <jwe@octave.org>
parents:
20791
diff
changeset
|
30 |
8950
d865363208d6
include <iosfwd> instead of <iostream> in header files
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
31 #include <iosfwd> |
2887 | 32 #include <string> |
33 | |
2943 | 34 class octave_value; |
35 class octave_value_list; | |
2887 | 36 class octave_function; |
37 | |
33296
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
38 #include "comment-list.h" |
15037
56b8eb7c9c04
improvements in parsing classdef
John W. Eaton <jwe@octave.org>
parents:
14982
diff
changeset
|
39 #include "oct-lvalue.h" |
7677
db02cc0ba8f2
handle breakpoints in tree_identifier::do_lookup
John W. Eaton <jwe@octave.org>
parents:
7336
diff
changeset
|
40 #include "pt-bp.h" |
2980 | 41 #include "pt-exp.h" |
23435
c452180ab672
begin refactoring parse tree evaluator
John W. Eaton <jwe@octave.org>
parents:
23220
diff
changeset
|
42 #include "pt-walk.h" |
24352
bff8e3884a88
restructure global variable handling in symbol table
John W. Eaton <jwe@octave.org>
parents:
24270
diff
changeset
|
43 #include "symscope.h" |
33296
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
44 #include "token.h" |
2887 | 45 |
31605
e88a07dec498
maint: Use macros to begin/end C++ namespaces.
Rik <rik@octave.org>
parents:
30564
diff
changeset
|
46 OCTAVE_BEGIN_NAMESPACE(octave) |
e88a07dec498
maint: Use macros to begin/end C++ namespaces.
Rik <rik@octave.org>
parents:
30564
diff
changeset
|
47 |
31607
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
48 class tree_evaluator; |
23075
4e3d47dc7e25
move parse tree classes inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
22869
diff
changeset
|
49 |
31607
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
50 // Symbols from the symbol table. |
2887 | 51 |
31607
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
52 class tree_identifier : public tree_expression |
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
53 { |
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
54 friend class tree_index_expression; |
2887 | 55 |
31607
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
56 public: |
23075
4e3d47dc7e25
move parse tree classes inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
22869
diff
changeset
|
57 |
33309
d422992b5483
refactor position tracking in the parser
John W. Eaton <jwe@octave.org>
parents:
33296
diff
changeset
|
58 tree_identifier (const token& tok) : m_token (tok) { } |
2887 | 59 |
33296
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
60 tree_identifier (symbol_scope& scope, const token& tok) |
33309
d422992b5483
refactor position tracking in the parser
John W. Eaton <jwe@octave.org>
parents:
33296
diff
changeset
|
61 : m_sym (scope ? scope.insert (tok.text ()) : symbol_record (tok.text ())), |
33296
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
62 m_token (tok) |
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
63 { } |
2887 | 64 |
31837
febd82d1a8de
use new macros to consistently delete copy and move member functions
John W. Eaton <jwe@octave.org>
parents:
31771
diff
changeset
|
65 OCTAVE_DISABLE_COPY_MOVE (tree_identifier) |
2887 | 66 |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
67 ~tree_identifier () = default; |
2887 | 68 |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
69 bool is_identifier () const { return true; } |
10206
37a08e0ce2dc
support Matlab-style empty output/input arguments
Jaroslav Hajek <highegg@gmail.com>
parents:
10160
diff
changeset
|
70 |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
71 std::string name () const { return m_sym.name (); } |
2887 | 72 |
33296
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
73 comment_list leading_comments () const { return m_token.leading_comments (); } |
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
74 |
33309
d422992b5483
refactor position tracking in the parser
John W. Eaton <jwe@octave.org>
parents:
33296
diff
changeset
|
75 filepos beg_pos () const { return m_token.beg_pos (); } |
d422992b5483
refactor position tracking in the parser
John W. Eaton <jwe@octave.org>
parents:
33296
diff
changeset
|
76 filepos end_pos () const { return m_token.end_pos (); } |
d422992b5483
refactor position tracking in the parser
John W. Eaton <jwe@octave.org>
parents:
33296
diff
changeset
|
77 |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
78 virtual bool is_black_hole () const { return false; } |
23075
4e3d47dc7e25
move parse tree classes inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
22869
diff
changeset
|
79 |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
80 void mark_as_formal_parameter () { m_sym.mark_formal (); } |
3010 | 81 |
31607
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
82 // We really need to know whether this symbol refers to a variable |
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
83 // or a function, but we may not know that yet. |
2887 | 84 |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
85 bool lvalue_ok () const { return true; } |
3010 | 86 |
31607
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
87 octave_lvalue lvalue (tree_evaluator& tw); |
2887 | 88 |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
89 void eval_undefined_error (); |
2887 | 90 |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
91 void static_workspace_error () |
31607
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
92 { |
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
93 error (R"(can not add variable "%s" to a static workspace)", |
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
94 name ().c_str ()); |
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
95 } |
15236
44d6ffdf9479
Disallow new variables in nested functions (bug #36271)
Max Brister <max@2bass.com>
parents:
15195
diff
changeset
|
96 |
31607
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
97 tree_identifier * dup (symbol_scope& scope) const; |
5861 | 98 |
31607
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
99 octave_value evaluate (tree_evaluator& tw, int nargout = 1) |
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
100 { |
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
101 octave_value_list retval = evaluate_n (tw, nargout); |
27371
fcaecdbc8d8a
don't use visitor pattern for expression evaluation (bug #56752)
John W. Eaton <jwe@octave.org>
parents:
26661
diff
changeset
|
102 |
31607
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
103 return retval.length () > 0 ? retval(0) : octave_value (); |
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
104 } |
27371
fcaecdbc8d8a
don't use visitor pattern for expression evaluation (bug #56752)
John W. Eaton <jwe@octave.org>
parents:
26661
diff
changeset
|
105 |
31607
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
106 octave_value_list evaluate_n (tree_evaluator& tw, int nargout = 1); |
27371
fcaecdbc8d8a
don't use visitor pattern for expression evaluation (bug #56752)
John W. Eaton <jwe@octave.org>
parents:
26661
diff
changeset
|
107 |
31607
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
108 void accept (tree_walker& tw) |
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
109 { |
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
110 tw.visit_identifier (*this); |
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
111 } |
2887 | 112 |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
113 symbol_record symbol () const { return m_sym; } |
24037
21915520ac7b
use more direct method for non-local symbol access (bug #38236)
John W. Eaton <jwe@octave.org>
parents:
23803
diff
changeset
|
114 |
33296
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
115 tree_identifier * mark_get_set (const token& get_set_tok, const token& dot_tok) |
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
116 { |
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
117 m_get_set_tok = get_set_tok; |
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
118 m_dot_tok = dot_tok; |
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
119 |
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
120 return this; |
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
121 } |
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
122 |
31607
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
123 protected: |
2887 | 124 |
33296
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
125 tree_identifier (symbol_record& sym, const token& tok) |
33309
d422992b5483
refactor position tracking in the parser
John W. Eaton <jwe@octave.org>
parents:
33296
diff
changeset
|
126 : m_sym (sym), m_token (tok) |
33296
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
127 { } |
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
128 |
31607
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
129 // The symbol record that this identifier references. |
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
130 symbol_record m_sym; |
33296
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
131 |
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
132 // These will be defined for get.ID or set.ID function names. |
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
133 token m_get_set_tok; |
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
134 token m_dot_tok; |
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
135 |
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
136 // The IDENT token from the lexer. |
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
137 token m_token; |
31607
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
138 }; |
7752
40c428ea3408
initial implementation of dbup and dbdown
John W. Eaton <jwe@octave.org>
parents:
7677
diff
changeset
|
139 |
31607
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
140 class tree_black_hole : public tree_identifier |
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
141 { |
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
142 public: |
2988 | 143 |
33296
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
144 tree_black_hole (const token& token) |
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
145 : tree_identifier (token) |
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
146 { } |
2887 | 147 |
31855
1daf8bfceac3
default or disable more ctors, dtors, and assignment ops
John W. Eaton <jwe@octave.org>
parents:
31837
diff
changeset
|
148 OCTAVE_DISABLE_COPY_MOVE (tree_black_hole) |
1daf8bfceac3
default or disable more ctors, dtors, and assignment ops
John W. Eaton <jwe@octave.org>
parents:
31837
diff
changeset
|
149 |
1daf8bfceac3
default or disable more ctors, dtors, and assignment ops
John W. Eaton <jwe@octave.org>
parents:
31837
diff
changeset
|
150 ~tree_black_hole () = default; |
1daf8bfceac3
default or disable more ctors, dtors, and assignment ops
John W. Eaton <jwe@octave.org>
parents:
31837
diff
changeset
|
151 |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
152 std::string name () const { return "~"; } |
10206
37a08e0ce2dc
support Matlab-style empty output/input arguments
Jaroslav Hajek <highegg@gmail.com>
parents:
10160
diff
changeset
|
153 |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
154 bool is_black_hole () const { return true; } |
10206
37a08e0ce2dc
support Matlab-style empty output/input arguments
Jaroslav Hajek <highegg@gmail.com>
parents:
10160
diff
changeset
|
155 |
31607
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
156 tree_black_hole * dup (symbol_scope&) const |
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
157 { |
33296
70b7f1c285c7
refactor comment handling in the lexer and parser
John W. Eaton <jwe@octave.org>
parents:
32632
diff
changeset
|
158 return new tree_black_hole (m_token); |
31607
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
159 } |
10206
37a08e0ce2dc
support Matlab-style empty output/input arguments
Jaroslav Hajek <highegg@gmail.com>
parents:
10160
diff
changeset
|
160 |
31607
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
161 octave_lvalue lvalue (tree_evaluator& tw); |
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
31605
diff
changeset
|
162 }; |
31605
e88a07dec498
maint: Use macros to begin/end C++ namespaces.
Rik <rik@octave.org>
parents:
30564
diff
changeset
|
163 |
e88a07dec498
maint: Use macros to begin/end C++ namespaces.
Rik <rik@octave.org>
parents:
30564
diff
changeset
|
164 OCTAVE_END_NAMESPACE(octave) |
10206
37a08e0ce2dc
support Matlab-style empty output/input arguments
Jaroslav Hajek <highegg@gmail.com>
parents:
10160
diff
changeset
|
165 |
2887 | 166 #endif |