Debian Codegraph @

sys/Interpreter.h

raw symbols SCIP
1 #cxx . . $ `<file>/sys/Interpreter.h`/ifndef _Interpreter_h_
2 #define _Interpreter_h_cxx . . $ `sys/Interpreter.h:2:9`!
3 /* Interpreter.h
4 *
5 * Copyright (C) 1993-2018,2020-2026 Paul Boersma
6 *
7 * This code is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or (at
10 * your option) any later version.
11 *
12 * This code 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.
15 * See the GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this work. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #include "Collection.h"cxx . . $ `<file>/sys/Collection.h`/
22 #include "Gui.h"cxx . . $ `<file>/sys/Gui.h`/
23 #include "Formula.h"cxx . . $ `<file>/sys/Formula.h`/
24
25 #include <string>
26 #include <unordered_map>
27
28 Thing_definecxx . . $ `sys/Thing.h:60:9`! (InterpreterVariable, SimpleString) {
29 double numericValuecxx . . $ structInterpreterVariable#numericValue.; // a variable whose name has no suffix: a real, an integer, or a boolean
30 autostring32cxx . . $ autostring32# stringValuecxx . . $ structInterpreterVariable#stringValue.; // a variable whose name has the suffix "$"
31 autoVECcxx . . $ autoVEC# numericVectorValuecxx . . $ structInterpreterVariable#numericVectorValue.; // a variable whose name has the suffix "#"
32 autoMATcxx . . $ autoMAT# numericMatrixValuecxx . . $ structInterpreterVariable#numericMatrixValue.; // a variable whose name has the suffix "##"
33 autoSTRVECcxx . . $ autoSTRVEC# stringArrayValuecxx . . $ structInterpreterVariable#stringArrayValue.; // a variable whose name has the suffix "$#"
34 };
35
36 #define Interpreter_MAXNUM_PARAMETERScxx . . $ `sys/Interpreter.h:36:9`! 400
37 #define Interpreter_MAX_CALL_DEPTHcxx . . $ `sys/Interpreter.h:37:9`! 50
38
39 #define Interpreter_MAX_LABEL_LENGTHcxx . . $ `sys/Interpreter.h:39:9`! 99
40 #define Interpreter_MAX_PARAMETER_LENGTHcxx . . $ `sys/Interpreter.h:40:9`! 99
41 #define Interpreter_MAX_FORMAT_LENGTHcxx . . $ `sys/Interpreter.h:41:9`! 39
42
43 Thing_declarecxx . . $ `sys/Thing.h:51:9`! (UiForm);
44 Thing_declarecxx . . $ mutableUiField# (UiField);
45 Thing_declarecxx . . $ `sys/Thing.h:51:9`! (Editor);
46 Thing_declarecxx . . $ autoScript# (Script);
47 Thing_declarecxx . . $ classNotebook. (Notebook);
48 Thing_declarecxx . . $ mutableInterpreterStack# (InterpreterStack);
49
50 enum class kInterpreter_ReturnTypecxx . . $ kInterpreter_ReturnType# {
51 VOID_cxx . . $ kInterpreter_ReturnType#VOID_. = 0, // don't change; this is how it is automatically zero-initialized in structInterpreter
52 OBJECT_cxx . . $ kInterpreter_ReturnType#OBJECT_.,
53
54 /*
55 The following three are not distinguished in PraatScript,
56 but they may need to be distinguished in PraatLib (for C, Python, R).
57 */
58 REAL_cxx . . $ kInterpreter_ReturnType#REAL_.,
59 INTEGER_cxx . . $ kInterpreter_ReturnType#INTEGER_.,
60 BOOLEAN_cxx . . $ kInterpreter_ReturnType#BOOLEAN_.,
61
62 STRING_cxx . . $ kInterpreter_ReturnType#STRING_.,
63
64 /*
65 The following two are not distinguished in PraatScript,
66 but they may need to be distinguished in PraatLib (for C, Python, R).
67 */
68 REALVECTOR_cxx . . $ kInterpreter_ReturnType#REALVECTOR_.,
69 INTEGERVECTOR_cxx . . $ kInterpreter_ReturnType#INTEGERVECTOR_.,
70
71 REALMATRIX_cxx . . $ kInterpreter_ReturnType#REALMATRIX_.,
72 STRINGARRAY_cxx . . $ kInterpreter_ReturnType#STRINGARRAY_.
73 };
74
75 conststring32cxx . . $ conststring32# kInterpreter_ReturnType_errorMessagecxx . . $ kInterpreter_ReturnType_errorMessage(bccbfafe1c371207). (kInterpreter_ReturnTypecxx . . $ kInterpreter_ReturnType# returnType, conststring32cxx . . $ conststring32# command);
76
77 Thing_definecxx . . $ autoSomeThing# (Interpreter, Thing) {
78 Scriptcxx . . $ Script# scriptReferencecxx . . $ structInterpreter#scriptReference.;
79 Notebookcxx . . $ Notebook# notebookReferencecxx . . $ structInterpreter#notebookReference.;
80 InterpreterStackcxx . . $ InterpreterStack# owningInterpreterStackcxx . . $ structInterpreter#owningInterpreterStack.;
81 bool isHaltedcxx . . $ structInterpreter#isHalted., isInSecondPasscxx . . $ structInterpreter#isInSecondPass.;
82
83 struct EditorEnvironmentcxx . . $ structInterpreter#EditorEnvironment# {
84 ClassInfocxx . . $ ClassInfo# _optionalClasscxx . . $ structInterpreter#EditorEnvironment#_optionalClass.;
85 Editorcxx . . $ Editor# _optionalInstancecxx . . $ structInterpreter#EditorEnvironment#_optionalInstance.;
86 void _setFromOptionalEditorcxx . . $ structInterpreter#EditorEnvironment#_setFromOptionalEditor(804f629ae7a06da5). (Editorcxx . . $ Editor# optionalEditor) noexcept {
87 ourcxx . . $ `melder/melder.h:42:9`! _optionalClasscxx . . $ structInterpreter#EditorEnvironment#_optionalClass. = ( optionalEditor ? ((Thingcxx . . $ Thing#) optionalEditor) -> classInfocxx . . $ structThing#classInfo. : nullptr );
88 // class Editor hasn't been defined yet, but assuming it's a Thing seems to be safe...
89 ourcxx . . $ `melder/melder.h:42:9`! _optionalInstancecxx . . $ structInterpreter#EditorEnvironment#_optionalInstance. = optionalEditor;
90 }
91 conststring32cxx . . $ conststring32# _optionalClassNamecxx . . $ structInterpreter#EditorEnvironment#_optionalClassName(4fe9f98b54bf9c7d). () noexcept {
92 return _optionalClasscxx . . $ structInterpreter#EditorEnvironment#_optionalClass. ? ourcxx . . $ `melder/melder.h:42:9`! _optionalClasscxx . . $ structInterpreter#EditorEnvironment#_optionalClass. -> classNamecxx . . $ structClassInfo#className. : nullptr;
93 }
94 } _owningEditorEnvironmentcxx . . $ structInterpreter#_owningEditorEnvironment., _dynamicEditorEnvironmentcxx . . $ structInterpreter#_dynamicEditorEnvironment.;
95 /*
96 Each entire editor environment (but not its parts separately) can be set from an Editor;
97 in case of an owning editor, the editor is optional; in case of a dynamic editor, it's obligatory.
98 The parts of an editor environment (class name and instance) can be separately gotten.
99 */
100 void setOwningEditorEnvironmentFromOptionalEditorcxx . . $ structInterpreter#setOwningEditorEnvironmentFromOptionalEditor(804f629ae7a06da5). (Editorcxx . . $ Editor# optionalEditor) noexcept {
101 ourcxx . . $ `melder/melder.h:42:9`! _owningEditorEnvironmentcxx . . $ structInterpreter#_owningEditorEnvironment.. _setFromOptionalEditorcxx . . $ structInterpreter#EditorEnvironment#_setFromOptionalEditor(804f629ae7a06da5). (optionalEditor);
102 }
103 conststring32cxx . . $ conststring32# optionalOwningEditorEnvironmentClassNamecxx . . $ structInterpreter#optionalOwningEditorEnvironmentClassName(4fe9f98b54bf9c7d). () noexcept {
104 return ourcxx . . $ `melder/melder.h:42:9`! _owningEditorEnvironmentcxx . . $ structInterpreter#_owningEditorEnvironment.. _optionalClassNamecxx . . $ structInterpreter#EditorEnvironment#_optionalClassName(4fe9f98b54bf9c7d).();
105 }
106 Editorcxx . . $ Editor# optionalOwningEnvironmentEditorcxx . . $ structInterpreter#optionalOwningEnvironmentEditor(480fba2ddcd094f3). () noexcept {
107 return ourcxx . . $ `melder/melder.h:42:9`! _owningEditorEnvironmentcxx . . $ structInterpreter#_owningEditorEnvironment.. _optionalInstancecxx . . $ structInterpreter#EditorEnvironment#_optionalInstance.;
108 }
109 void setDynamicEditorEnvironmentFromEditorcxx . . $ structInterpreter#setDynamicEditorEnvironmentFromEditor(804f629ae7a06da5). (Editorcxx . . $ Editor# editor) noexcept {
110 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (editor);
111 ourcxx . . $ `melder/melder.h:42:9`! _dynamicEditorEnvironmentcxx . . $ structInterpreter#_dynamicEditorEnvironment.. _setFromOptionalEditorcxx . . $ structInterpreter#EditorEnvironment#_setFromOptionalEditor(804f629ae7a06da5). (editor);
112 }
113 conststring32cxx . . $ conststring32# optionalDynamicEditorEnvironmentClassNamecxx . . $ structInterpreter#optionalDynamicEditorEnvironmentClassName(4fe9f98b54bf9c7d). () noexcept {
114 return ourcxx . . $ `melder/melder.h:42:9`! _dynamicEditorEnvironmentcxx . . $ structInterpreter#_dynamicEditorEnvironment.. _optionalClassNamecxx . . $ structInterpreter#EditorEnvironment#_optionalClassName(4fe9f98b54bf9c7d).();
115 }
116 Editorcxx . . $ Editor# optionalDynamicEnvironmentEditorcxx . . $ structInterpreter#optionalDynamicEnvironmentEditor(480fba2ddcd094f3). () noexcept {
117 return ourcxx . . $ `melder/melder.h:42:9`! _dynamicEditorEnvironmentcxx . . $ structInterpreter#_dynamicEditorEnvironment.. _optionalInstancecxx . . $ structInterpreter#EditorEnvironment#_optionalInstance.;
118 }
119 /*
120 An owning editor environment can be copied to a dynamic one, but not the other way round.
121 */
122 void setDynamicFromOwningEditorEnvironmentcxx . . $ structInterpreter#setDynamicFromOwningEditorEnvironment(ced63f7c635d850d). () noexcept {
123 ourcxx . . $ `melder/melder.h:42:9`! _dynamicEditorEnvironmentcxx . . $ structInterpreter#_dynamicEditorEnvironment. =cxx . . $ structInterpreter#EditorEnvironment#`operator=`(89d884458d7ce4f8). ourcxx . . $ `melder/melder.h:42:9`! _owningEditorEnvironmentcxx . . $ structInterpreter#_owningEditorEnvironment.; // TODO: what if the owner has been orphaned?
124 }
125 /*
126 Memory of the past.
127 */
128 bool wasStartedFromEditorEnvironmentcxx . . $ structInterpreter#wasStartedFromEditorEnvironment(77ce49a7840d23c7). () noexcept {
129 return !! ourcxx . . $ `melder/melder.h:42:9`! _owningEditorEnvironmentcxx . . $ structInterpreter#_owningEditorEnvironment.. _optionalClasscxx . . $ structInterpreter#EditorEnvironment#_optionalClass.;
130 }
131 /*
132 Awareness of the present.
133 */
134 bool hasDynamicEnvironmentEditorcxx . . $ structInterpreter#hasDynamicEnvironmentEditor(77ce49a7840d23c7). () noexcept {
135 return !! ourcxx . . $ `melder/melder.h:42:9`! _dynamicEditorEnvironmentcxx . . $ structInterpreter#_dynamicEditorEnvironment.. _optionalInstancecxx . . $ structInterpreter#EditorEnvironment#_optionalInstance.;
136 }
137 /*
138 Forgetting. The owning editor's class will always be remembered, though. That's our identity, so to say.
139
140 The dynamic editor's class will also be remembered,
141 on behalf of an error message by a continuing pause script.
142 (last checked 2023-03-05)
143 */
144 void undangleOwningEditorcxx . . $ structInterpreter#undangleOwningEditor(ced63f7c635d850d). () noexcept {
145 ourcxx . . $ `melder/melder.h:42:9`! _owningEditorEnvironmentcxx . . $ structInterpreter#_owningEditorEnvironment.. _optionalInstancecxx . . $ structInterpreter#EditorEnvironment#_optionalInstance. = nullptr;
146 }
147 void undangleDynamicEditorcxx . . $ structInterpreter#undangleDynamicEditor(ced63f7c635d850d). () noexcept {
148 ourcxx . . $ `melder/melder.h:42:9`! _dynamicEditorEnvironmentcxx . . $ structInterpreter#_dynamicEditorEnvironment.. _optionalInstancecxx . . $ structInterpreter#EditorEnvironment#_optionalInstance. = nullptr;
149 }
150 void undangleEditorEnvironmentscxx . . $ structInterpreter#undangleEditorEnvironments(ced63f7c635d850d). () noexcept {
151 ourcxx . . $ `melder/melder.h:42:9`! _owningEditorEnvironmentcxx . . $ structInterpreter#_owningEditorEnvironment.. _optionalInstancecxx . . $ structInterpreter#EditorEnvironment#_optionalInstance. = nullptr;
152 ourcxx . . $ `melder/melder.h:42:9`! _dynamicEditorEnvironmentcxx . . $ structInterpreter#_dynamicEditorEnvironment.. _optionalInstancecxx . . $ structInterpreter#EditorEnvironment#_optionalInstance. = nullptr;
153 }
154 void nullifyDynamicEditorEnvironmentcxx . . $ structInterpreter#nullifyDynamicEditorEnvironment(ced63f7c635d850d). () noexcept {
155 ourcxx . . $ `melder/melder.h:42:9`! _dynamicEditorEnvironmentcxx . . $ structInterpreter#_dynamicEditorEnvironment.. _optionalClasscxx . . $ structInterpreter#EditorEnvironment#_optionalClass. = nullptr;
156 ourcxx . . $ `melder/melder.h:42:9`! _dynamicEditorEnvironmentcxx . . $ structInterpreter#_dynamicEditorEnvironment.. _optionalInstancecxx . . $ structInterpreter#EditorEnvironment#_optionalInstance. = nullptr;
157 }
158
159 autostring32cxx . . $ autostring32# textcxx . . $ structInterpreter#text.;
160 structMelderFilecxx . . $ structMelderFile# filecxx . . $ structInterpreter#file.;
161 structMelderFoldercxx . . $ structMelderFolder# workingDirectorycxx . . $ structInterpreter#workingDirectory.;
162
163 int numberOfParameterscxx . . $ structInterpreter#numberOfParameters., callDepthcxx . . $ structInterpreter#callDepth.;
164 int typescxx . . $ structInterpreter#types. [1+Interpreter_MAXNUM_PARAMETERScxx . . $ `sys/Interpreter.h:36:9`!], numbersOfLinescxx . . $ structInterpreter#numbersOfLines. [1+Interpreter_MAXNUM_PARAMETERScxx . . $ `sys/Interpreter.h:36:9`!];
165 char32cxx . . $ char32# parameterscxx . . $ structInterpreter#parameters. [1+Interpreter_MAXNUM_PARAMETERScxx . . $ `sys/Interpreter.h:36:9`!] [1+Interpreter_MAX_PARAMETER_LENGTHcxx . . $ `sys/Interpreter.h:40:9`!];
166 char32cxx . . $ char32# formatscxx . . $ structInterpreter#formats. [1+Interpreter_MAXNUM_PARAMETERScxx . . $ `sys/Interpreter.h:36:9`!] [1+Interpreter_MAX_FORMAT_LENGTHcxx . . $ `sys/Interpreter.h:41:9`!];
167 autostring32cxx . . $ autostring32# argumentscxx . . $ structInterpreter#arguments. [1+Interpreter_MAXNUM_PARAMETERScxx . . $ `sys/Interpreter.h:36:9`!];
168 char32cxx . . $ char32# choiceArgumentscxx . . $ structInterpreter#choiceArguments. [1+Interpreter_MAXNUM_PARAMETERScxx . . $ `sys/Interpreter.h:36:9`!] [100];
169 autoSTRVECcxx . . $ autoSTRVEC# labelNamescxx . . $ structInterpreter#labelNames.;
170 autoINTVECcxx . . $ autoINTVEC# labelLinescxx . . $ structInterpreter#labelLines.;
171 autoSTRVECcxx . . $ autoSTRVEC# procedureNamescxx . . $ structInterpreter#procedureNames.;
172 autoINTVECcxx . . $ autoINTVEC# procedureStartLinescxx . . $ structInterpreter#procedureStartLines.;
173 autostring32cxx . . $ autostring32# dialogTitlecxx . . $ structInterpreter#dialogTitle.;
174 char32cxx . . $ char32# procedureStackNamescxx . . $ structInterpreter#procedureStackNames. [1+Interpreter_MAX_CALL_DEPTHcxx . . $ `sys/Interpreter.h:37:9`!] [100];
175 stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map# <stdcxx . . $ std/::u32stringcxx . . $ std/u32string#, autoInterpreterVariablecxx . . $ autoInterpreterVariable#> variablesMapcxx . . $ structInterpreter#variablesMap.;
176 bool runningcxx . . $ structInterpreter#running., stoppedcxx . . $ structInterpreter#stopped.;
177 integercxx . . $ integer# callStackcxx . . $ structInterpreter#callStack. [1 + Interpreter_MAX_CALL_DEPTHcxx . . $ `sys/Interpreter.h:37:9`!];
178 bool fromifcxx . . $ structInterpreter#fromif., fromendforcxx . . $ structInterpreter#fromendfor.;
179
180 autovectorcxx . . $ autovector# <mutablestring32cxx . . $ mutablestring32#> linescxx . . $ structInterpreter#lines.; // not autostringvector, because the elements are reference copies
181 integercxx . . $ integer# lineNumbercxx . . $ structInterpreter#lineNumber. = 0;
182 integercxx . . $ integer# assertErrorLineNumbercxx . . $ structInterpreter#assertErrorLineNumber. = 0;
183 autoMelderStringcxx . . $ autoMelderString# assertErrorStringcxx . . $ structInterpreter#assertErrorString.;
184
185 kInterpreter_ReturnTypecxx . . $ kInterpreter_ReturnType# returnTypecxx . . $ structInterpreter#returnType.; // automatically initialized as kInterpreter_ReturnType::VOID_
186 bool returnedBooleancxx . . $ structInterpreter#returnedBoolean.;
187 autostring32cxx . . $ autostring32# returnedStringcxx . . $ structInterpreter#returnedString.;
188 autoVECcxx . . $ autoVEC# returnedRealVectorcxx . . $ structInterpreter#returnedRealVector.;
189 autoINTVECcxx . . $ autoINTVEC# returnedIntegerVectorcxx . . $ structInterpreter#returnedIntegerVector.;
190 autoMATcxx . . $ autoMAT# returnedRealMatrixcxx . . $ structInterpreter#returnedRealMatrix.;
191 autoSTRVECcxx . . $ autoSTRVEC# returnedStringArraycxx . . $ structInterpreter#returnedStringArray.;
192
193 void v9_destroycxx . . $ structInterpreter#v9_destroy(ced63f7c635d850d). () noexcept
194 override;
195 };
196
197 autoInterpretercxx . . $ autoInterpreter# Interpreter_createFromEnvironmentcxx . . $ Interpreter_createFromEnvironment(2a446a9b6f15a803). (
198 InterpreterStackcxx . . $ InterpreterStack# owner,
199 Editorcxx . . $ Editor# optionalEditor,
200 MelderFilecxx . . $ MelderFile# optionalFile
201 );
202
203 void Interpreter_rememberScriptcxx . . $ Interpreter_rememberScript(a0c4c87353b136f2). (Interpretercxx . . $ Interpreter# me, MelderFilecxx . . $ MelderFile# scriptFile, bool fullTrust);
204 void Interpreter_rememberScript_overridecxx . . $ Interpreter_rememberScript_override(a0c4c87353b136f2). (Interpretercxx . . $ Interpreter# me, MelderFilecxx . . $ MelderFile# scriptFile, const bool fullTrust);
205 void Interpreter_rememberNotebookcxx . . $ Interpreter_rememberNotebook(a0c4c87353b136f2). (Interpretercxx . . $ Interpreter# me, MelderFilecxx . . $ MelderFile# notebookFile, const bool fullTrust);
206
207 void Interpreters_undangleEnvironmentcxx . . $ Interpreters_undangleEnvironment(804f629ae7a06da5). (Editorcxx . . $ Editor# environment) noexcept;
208
209 void Melder_includeIncludeFilescxx . . $ Melder_includeIncludeFiles(2d5e149ff849c92b). (autostring32cxx . . $ autostring32# *text, bool onlyInCodeChunks = false);
210 integercxx . . $ integer# Interpreter_readParameterscxx . . $ Interpreter_readParameters(9dd4ed1655057857). (Interpretercxx . . $ Interpreter# me, mutablestring32cxx . . $ mutablestring32# text);
211 Thing_declarecxx . . $ mutableUiForm# (UiForm);
212 autoUiFormcxx . . $ autoUiForm# Interpreter_createFormcxx . . $ Interpreter_createForm(cb75ceafc4a9bd55). (Interpretercxx . . $ Interpreter# me, GuiWindowcxx . . $ GuiWindow# parent, Editorcxx . . $ Editor# optionalEditor, conststring32cxx . . $ conststring32# fileName,
213 void (*okCallback) (UiFormcxx . . $ UiForm# sendingForm, integercxx . . $ integer# narg, Stackelcxx . . $ Stackel# args, conststring32cxx . . $ conststring32# sendingString,
214 Interpretercxx . . $ Interpreter# interpreter, conststring32cxx . . $ conststring32# invokingButtonTitle, bool modified, void *closure, Editorcxx . . $ Editor# optionalEditor),
215 void *okClosure, bool selectionOnly
216 );
217 void Interpreter_getArgumentsFromDialogcxx . . $ Interpreter_getArgumentsFromDialog(d4b141834b28b228). (Interpretercxx . . $ Interpreter# me, UiFormcxx . . $ UiForm# dialog);
218 void Interpreter_getArgumentsFromStringcxx . . $ Interpreter_getArgumentsFromString(c79bee1e2231f904). (Interpretercxx . . $ Interpreter# me, conststring32cxx . . $ conststring32# arguments);
219 void Interpreter_getArgumentsFromArgscxx . . $ Interpreter_getArgumentsFromArgs(2d2c4569794feab0). (Interpretercxx . . $ Interpreter# me, integercxx . . $ integer# nargs, Stackelcxx . . $ Stackel# args);
220 void Interpreter_getArgumentsFromCommandLinecxx . . $ Interpreter_getArgumentsFromCommandLine(715a1a3989df8f8a). (Interpretercxx . . $ Interpreter# me, integercxx . . $ integer# argc, char **argv);
221 void Interpreter_runcxx . . $ Interpreter_run(eec3dd5f99c9d46a). (Interpretercxx . . $ Interpreter# me, autostring32cxx . . $ autostring32# text, const bool reuseVariables); // messes up 'text'
222 void Interpreter_stopcxx . . $ Interpreter_stop(448c181fe9dacca8). (Interpretercxx . . $ Interpreter# me); // can be called from any procedure called deep-down by the interpreter; will stop before next line
223 void Interpreter_resumecxx . . $ Interpreter_resume(448c181fe9dacca8). (Interpretercxx . . $ Interpreter# me);
224
225 void Interpreter_voidExpressioncxx . . $ Interpreter_voidExpression(c79bee1e2231f904). (Interpretercxx . . $ Interpreter# me, conststring32cxx . . $ conststring32# expression);
226 void Interpreter_numericExpressioncxx . . $ Interpreter_numericExpression(8639512facf48b76). (Interpretercxx . . $ Interpreter# me, conststring32cxx . . $ conststring32# expression, double *p_value);
227 void Interpreter_numericVectorExpressioncxx . . $ Interpreter_numericVectorExpression(e47164ae4c0553fe). (Interpretercxx . . $ Interpreter# me, conststring32cxx . . $ conststring32# expression, VECcxx . . $ VEC# *p_value, bool *p_owned);
228 void Interpreter_numericMatrixExpressioncxx . . $ Interpreter_numericMatrixExpression(dd630cc19a2beb06). (Interpretercxx . . $ Interpreter# me, conststring32cxx . . $ conststring32# expression, MATcxx . . $ MAT# *p_value, bool *p_owned);
229 autostring32cxx . . $ autostring32# Interpreter_stringExpressioncxx . . $ Interpreter_stringExpression(ae2ff4958c59280d). (Interpretercxx . . $ Interpreter# me, conststring32cxx . . $ conststring32# expression);
230 void Interpreter_stringArrayExpressioncxx . . $ Interpreter_stringArrayExpression(4cd1c45f7f524604). (Interpretercxx . . $ Interpreter# me, conststring32cxx . . $ conststring32# expression, STRVECcxx . . $ STRVEC# *out_value, bool *out_owned);
231 void Interpreter_anyExpressioncxx . . $ Interpreter_anyExpression(26b9613ed4865362). (Interpretercxx . . $ Interpreter# me, conststring32cxx . . $ conststring32# expression, Formula_Resultcxx . . $ Formula_Result# *p_result);
232
233 InterpreterVariablecxx . . $ InterpreterVariable# Interpreter_hasVariablecxx . . $ Interpreter_hasVariable(17b277cbad23fdab). (Interpretercxx . . $ Interpreter# me, conststring32cxx . . $ conststring32# key);
234 InterpreterVariablecxx . . $ InterpreterVariable# Interpreter_lookUpVariablecxx . . $ Interpreter_lookUpVariable(17b277cbad23fdab). (Interpretercxx . . $ Interpreter# me, conststring32cxx . . $ conststring32# key);
235
236 constexpr integercxx . . $ integer# InterpreterStack_MAXIMUM_NUMBER_OF_LEVELScxx . . $ InterpreterStack_MAXIMUM_NUMBER_OF_LEVELS. = 20;
237
238 Thing_definecxx . . $ InterpreterStack# (InterpreterStack, Thing) {
239 Editorcxx . . $ Editor# optionalInterpreterStackOwningEditorcxx . . $ structInterpreterStack#optionalInterpreterStackOwningEditor.; // TODO: remove
240 autoInterpretercxx . . $ autoInterpreter# interpreterscxx . . $ structInterpreterStack#interpreters. [1 + InterpreterStack_MAXIMUM_NUMBER_OF_LEVELScxx . . $ InterpreterStack_MAXIMUM_NUMBER_OF_LEVELS.] { };
241 integercxx . . $ integer# currentLevelcxx . . $ structInterpreterStack#currentLevel. = 0;
242
243 Interpretercxx . . $ Interpreter# current_0cxx . . $ structInterpreterStack#current_0(f106979d91fbaa9d). () {
244 return ourcxx . . $ `melder/melder.h:42:9`! interpreterscxx . . $ structInterpreterStack#interpreters. [ourcxx . . $ `melder/melder.h:42:9`! currentLevelcxx . . $ structInterpreterStack#currentLevel.].getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).();
245 }
246 Interpretercxx . . $ Interpreter# current_ecxx . . $ structInterpreterStack#current_e(f106979d91fbaa9d). () {
247 Interpretercxx . . $ Interpreter# interpreterReference = ourcxx . . $ `melder/melder.h:42:9`! interpreterscxx . . $ structInterpreterStack#interpreters. [ourcxx . . $ `melder/melder.h:42:9`! currentLevelcxx . . $ structInterpreterStack#currentLevel.].getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).();
248 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (interpreterReference,
249 U"Interpreter at level ", ourcxx . . $ `melder/melder.h:42:9`! currentLevel, U" does not exist.");
250 return interpreterReference;
251 }
252 Interpretercxx . . $ Interpreter# current_acxx . . $ structInterpreterStack#current_a(f106979d91fbaa9d). () {
253 Interpretercxx . . $ Interpreter# interpreterReference = ourcxx . . $ `melder/melder.h:42:9`! interpreterscxx . . $ structInterpreterStack#interpreters. [ourcxx . . $ `melder/melder.h:42:9`! currentLevelcxx . . $ structInterpreterStack#currentLevel.].getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).();
254 Melder_assertcxx . . $ abort(15d318a79ddce9e0). (interpreterReference);
255 return interpreterReference;
256 }
257 void emptyAllcxx . . $ structInterpreterStack#emptyAll(49f6e7a06ebc5aa8). ();
258 void runDowncxx . . $ structInterpreterStack#runDown(f108da249e59f621). (autoInterpretercxx . . $ autoInterpreter# interpreter, autostring32cxx . . $ autostring32# text, const bool reuseVariables);
259 void haltAllcxx . . $ structInterpreterStack#haltAll(49f6e7a06ebc5aa8). ();
260 void resumeFromTopcxx . . $ structInterpreterStack#resumeFromTop(49f6e7a06ebc5aa8). ();
261 void resumeNextLevelInSecondPasscxx . . $ structInterpreterStack#resumeNextLevelInSecondPass(49f6e7a06ebc5aa8). ();
262 };
263
264 autoInterpreterStackcxx . . $ autoInterpreterStack# InterpreterStack_createcxx . . $ InterpreterStack_create(91aa183261e4fa82). (Editorcxx . . $ Editor# optionalInterpreterStackOwningEditor);
265
266 extern structInterpreterStackcxx . . $ structInterpreterStack# theInterpreterStackcxx . . $ theInterpreterStack.; // TODO: remove
267
268 /* End of file Interpreter.h */
269 #endif