This file is indexed.

/usr/share/doc/libucommon-dev/a00202_source.html is in libucommon-doc 3.2.0-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>UCommon: ucommon/script.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>ucommon/script.h</h1><a href="a00202.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (C) 1995-1999 David Sugar, Tycho Softworks.</span>
<a name="l00002"></a>00002 <span class="comment">// Copyright (C) 1999-2005 Open Source Telecom Corp.</span>
<a name="l00003"></a>00003 <span class="comment">// Copyright (C) 2005-2010 David Sugar, Tycho Softworks.</span>
<a name="l00004"></a>00004 <span class="comment">//</span>
<a name="l00005"></a>00005 <span class="comment">// This file is part of GNU uCommon C++.</span>
<a name="l00006"></a>00006 <span class="comment">//</span>
<a name="l00007"></a>00007 <span class="comment">// GNU uCommon C++ is free software; you can redistribute it and/or modify</span>
<a name="l00008"></a>00008 <span class="comment">// it under the terms of the GNU General Public License as published by</span>
<a name="l00009"></a>00009 <span class="comment">// the Free Software Foundation; either version 3 of the License, or</span>
<a name="l00010"></a>00010 <span class="comment">// (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment">//</span>
<a name="l00012"></a>00012 <span class="comment">// GNU uCommon C++ is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the</span>
<a name="l00015"></a>00015 <span class="comment">// GNU General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment">//</span>
<a name="l00017"></a>00017 <span class="comment">// You should have received a copy of the GNU General Public License</span>
<a name="l00018"></a>00018 <span class="comment">// along with GNU uCommon C++.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
<a name="l00019"></a>00019 
<a name="l00032"></a>00032 <span class="preprocessor">#ifndef _UCOMMON_SCRIPT_H_</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#define _UCOMMON_SCRIPT_H_</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a>00035 <span class="preprocessor">#ifndef _UCOMMON_CONFIG_H_</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="a00201.html" title="Various miscelanous platform specific headers and defines.">ucommon/platform.h</a>&gt;</span>
<a name="l00037"></a>00037 <span class="preprocessor">#endif</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00039"></a>00039 <span class="preprocessor">#ifndef _UCOMMON_UCOMMON_H_</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="a00210.html" title="Top level include file for the GNU uCommon C++ core library.">ucommon/ucommon.h</a>&gt;</span>
<a name="l00041"></a>00041 <span class="preprocessor">#endif</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span>
<a name="l00043"></a>00043 NAMESPACE_UCOMMON
<a name="l00044"></a>00044 
<a name="l00050"></a><a class="code" href="a00119.html">00050</a> <span class="keyword">class </span>__EXPORT <a class="code" href="a00119.html" title="Compiled script container.">script</a> : <span class="keyword">public</span> <a class="code" href="a00043.html" title="A base class for reference counted objects.">CountedObject</a>, <span class="keyword">private</span> <a class="code" href="a00080.html" title="An alternate memory pager private heap manager.">memalloc</a>
<a name="l00051"></a>00051 {
<a name="l00052"></a>00052 <span class="keyword">public</span>:
<a name="l00053"></a>00053     <span class="keyword">class </span><a class="code" href="a00124.html" title="An instance of the runtime interpreter.">interp</a>;
<a name="l00054"></a>00054     <span class="keyword">class </span><a class="code" href="a00123.html" title="Header describes a script section.">header</a>;
<a name="l00055"></a>00055     <span class="keyword">class </span><a class="code" href="a00120.html" title="A container class for compile-time check methods.">checks</a>;
<a name="l00056"></a>00056 
<a name="l00060"></a><a class="code" href="a00119.html#a7a4604f1296a11fb51b8a3a9471940ea">00060</a>     <span class="keyword">typedef</span> bool (<a class="code" href="a00124.html" title="An instance of the runtime interpreter.">script::interp</a>::*method_t)(void);
<a name="l00061"></a>00061 
<a name="l00068"></a><a class="code" href="a00126.html">00068</a>     <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="a00126.html" title="Basic compiled statement.">line</a> {
<a name="l00069"></a>00069         <span class="keyword">struct </span><a class="code" href="a00126.html" title="Basic compiled statement.">line</a> *next;
<a name="l00070"></a>00070         <span class="keyword">union </span>{
<a name="l00071"></a>00071             <span class="keyword">const</span> <span class="keywordtype">char</span> *cmd;
<a name="l00072"></a>00072             <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *sub;
<a name="l00073"></a>00073         };
<a name="l00074"></a>00074         <span class="keywordtype">char</span> **argv;
<a name="l00075"></a>00075         <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> loop, argc; 
<a name="l00076"></a>00076         <span class="keywordtype">unsigned</span> lnum, mask;
<a name="l00077"></a>00077         method_t method;
<a name="l00078"></a>00078     } <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a>;
<a name="l00079"></a>00079 
<a name="l00083"></a><a class="code" href="a00119.html#ab592452c0370eb81a9ec6eaabd33a5dc">00083</a>     <span class="keyword">typedef</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *(*check_t)(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">script::header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">script::line_t</a> *<a class="code" href="a00126.html" title="Basic compiled statement.">line</a>);
<a name="l00084"></a>00084 
<a name="l00090"></a><a class="code" href="a00125.html">00090</a>     <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="a00125.html" title="A structure to introduce new core commands to the runtime engine.">keyword</a> 
<a name="l00091"></a>00091     {
<a name="l00092"></a>00092     <span class="keyword">public</span>:
<a name="l00093"></a><a class="code" href="a00125.html#a1b9d28a5c68cbff40e290c3bf8c170b6">00093</a>         <span class="keyword">const</span> <span class="keywordtype">char</span> *name;           
<a name="l00094"></a><a class="code" href="a00125.html#a084dcd714b8fca3a1e92462cc0b60848">00094</a>         method_t method;    
<a name="l00095"></a><a class="code" href="a00125.html#a9b355632bb790b177c65d21c0317a7b8">00095</a>         check_t check;              
<a name="l00096"></a><a class="code" href="a00125.html#a63ced95ba6d29b4e7763eae97430adde">00096</a>         <span class="keyword">struct </span><a class="code" href="a00125.html" title="A structure to introduce new core commands to the runtime engine.">keyword</a> *next;       
<a name="l00097"></a>00097     } <a class="code" href="a00125.html" title="A structure to introduce new core commands to the runtime engine.">keyword_t</a>;
<a name="l00098"></a>00098 
<a name="l00106"></a><a class="code" href="a00129.html">00106</a>     <span class="keyword">class </span>__EXPORT <a class="code" href="a00129.html" title="Contains defined variables found by scope when strict is used.">strict</a> : <span class="keyword">public</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a>
<a name="l00107"></a>00107     {
<a name="l00108"></a>00108     <span class="keyword">public</span>:
<a name="l00109"></a>00109         <span class="keyword">const</span> <span class="keywordtype">char</span> *id;
<a name="l00110"></a>00110 
<a name="l00111"></a>00111     <span class="keyword">public</span>:
<a name="l00112"></a>00112         <span class="keyword">static</span> <span class="keywordtype">bool</span> find(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">id</span>);
<a name="l00113"></a>00113         <span class="keyword">static</span> <span class="keywordtype">void</span> createVar(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">id</span>);
<a name="l00114"></a>00114         <span class="keyword">static</span> <span class="keywordtype">void</span> createSym(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">id</span>);
<a name="l00115"></a>00115         <span class="keyword">static</span> <span class="keywordtype">void</span> createAny(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">id</span>);
<a name="l00116"></a>00116         <span class="keyword">static</span> <span class="keywordtype">void</span> createGlobal(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">id</span>);
<a name="l00117"></a>00117 
<a name="l00118"></a>00118         <span class="keywordtype">void</span> put(FILE *fp, <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="a00123.html" title="Header describes a script section.">header</a>);
<a name="l00119"></a>00119     };
<a name="l00120"></a>00120 
<a name="l00128"></a><a class="code" href="a00130.html">00128</a>     <span class="keyword">class </span>__EXPORT <a class="code" href="a00130.html" title="Contains instance of a runtime symbol.">symbol</a> : <span class="keyword">public</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a>
<a name="l00129"></a>00129     {
<a name="l00130"></a>00130     <span class="keyword">public</span>:
<a name="l00131"></a><a class="code" href="a00130.html#aff686cc4ed99569bc37b6e21853753ee">00131</a>         <span class="keyword">const</span> <span class="keywordtype">char</span> *name;   
<a name="l00132"></a><a class="code" href="a00130.html#a6dbe943960e44bcb69a9543246a1baff">00132</a>         <span class="keywordtype">char</span> *data;         
<a name="l00133"></a><a class="code" href="a00130.html#afc69fec6498cd745981a547e2b2533cb">00133</a>         <span class="keywordtype">unsigned</span> size;      
<a name="l00134"></a><a class="code" href="a00130.html#a4fb2a560b2c584a66a46c2122934fe21">00134</a>         <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scope;      
<a name="l00135"></a>00135     };
<a name="l00136"></a>00136 
<a name="l00142"></a><a class="code" href="a00122.html">00142</a>     <span class="keyword">class </span>__EXPORT <a class="code" href="a00122.html" title="An event block for a script.">event</a> : <span class="keyword">public</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a>
<a name="l00143"></a>00143     {
<a name="l00144"></a>00144     <span class="keyword">public</span>:
<a name="l00145"></a>00145         <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *first;
<a name="l00146"></a>00146         <span class="keyword">const</span> <span class="keywordtype">char</span> *name;
<a name="l00147"></a>00147     };
<a name="l00148"></a>00148 
<a name="l00152"></a><a class="code" href="a00119.html#a681d9989d4467befe3e37161f07e6b6d">00152</a>     <span class="keyword">typedef</span> <span class="keyword">event</span> <a class="code" href="a00122.html" title="An event block for a script.">event_t</a>;
<a name="l00153"></a>00153 
<a name="l00162"></a><a class="code" href="a00123.html">00162</a>     <span class="keyword">class </span>__EXPORT <a class="code" href="a00123.html" title="Header describes a script section.">header</a> : <span class="keyword">public</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a>
<a name="l00163"></a>00163     {
<a name="l00164"></a>00164     <span class="keyword">public</span>:
<a name="l00165"></a><a class="code" href="a00123.html#a82afcae2392a6cf5cc59d9dcef96d7a1">00165</a>         <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *scoped;   
<a name="l00166"></a><a class="code" href="a00123.html#aa374d24b7e880e2cc6eb64850a7d9c85">00166</a>         <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *events;   
<a name="l00167"></a><a class="code" href="a00123.html#a72eaafa60333c571077a0231ceb4b6cf">00167</a>         <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *<a class="code" href="a00127.html" title="Runtime methods collection class.">methods</a>;  
<a name="l00168"></a><a class="code" href="a00123.html#ac5fe4b1f149268000f1e6717416ed7e6">00168</a>         <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *first;          
<a name="l00169"></a><a class="code" href="a00123.html#afc89b883fddd51cf9d314677d9fcab7d">00169</a>         <span class="keyword">const</span> <span class="keywordtype">char</span> *name;       
<a name="l00170"></a><a class="code" href="a00123.html#a93431d26b0dd7b38636abcc44bacbc66">00170</a>         <span class="keywordtype">unsigned</span> resmask;       
<a name="l00176"></a><a class="code" href="a00123.html#acbb81f7473eb60e5aa2f8eeb90a9fc90">00176</a>         <span class="keyword">inline</span> <span class="keywordtype">void</span> link(<a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr)
<a name="l00177"></a>00177             {next = scr;};
<a name="l00178"></a>00178     };
<a name="l00179"></a>00179 
<a name="l00187"></a><a class="code" href="a00120.html">00187</a>     <span class="keyword">class </span>__EXPORT <a class="code" href="a00120.html" title="A container class for compile-time check methods.">checks</a>
<a name="l00188"></a>00188     {
<a name="l00189"></a>00189     <span class="keyword">public</span>:
<a name="l00190"></a>00190         <span class="keyword">static</span> <span class="keywordtype">bool</span> isValue(<span class="keyword">const</span> <span class="keywordtype">char</span> *text);
<a name="l00191"></a>00191         <span class="keyword">static</span> <span class="keywordtype">bool</span> isText(<span class="keyword">const</span> <span class="keywordtype">char</span> *text);
<a name="l00192"></a>00192 
<a name="l00193"></a>00193         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkPush(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *<a class="code" href="a00126.html" title="Basic compiled statement.">line</a>);
<a name="l00194"></a>00194         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkApply(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00195"></a>00195         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkIgnore(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00196"></a>00196         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkNop(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00197"></a>00197         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkExit(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00198"></a>00198         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkVar(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00199"></a>00199         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkConst(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00200"></a>00200         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkSet(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00201"></a>00201         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkClear(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00202"></a>00202         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkError(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00203"></a>00203         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkPack(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00204"></a>00204         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkExpand(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00205"></a>00205         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkGosub(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *src, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00206"></a>00206         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkGoto(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00207"></a>00207         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkDo(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00208"></a>00208         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkUntil(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00209"></a>00209         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkWhile(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *ing, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00210"></a>00210         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkConditional(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00211"></a>00211         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkContinue(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00212"></a>00212         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkBreak(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00213"></a>00213         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkLoop(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00214"></a>00214         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkPrevious(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00215"></a>00215         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkIndex(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00216"></a>00216         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkForeach(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00217"></a>00217         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkCase(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00218"></a>00218         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkEndcase(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00219"></a>00219         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkOtherwise(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00220"></a>00220         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkIf(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00221"></a>00221         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkElif(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00222"></a>00222         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkElse(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00223"></a>00223         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkEndif(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00224"></a>00224         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkDefine(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00225"></a>00225         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkInvoke(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00226"></a>00226         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkWhen(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00227"></a>00227         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkStrict(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00228"></a>00228         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkExpr(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line);
<a name="l00229"></a>00229         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *chkRef(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *ing, <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *line); 
<a name="l00230"></a>00230     };
<a name="l00231"></a>00231 
<a name="l00236"></a><a class="code" href="a00128.html">00236</a>     <span class="keyword">typedef</span> <span class="keyword">struct </span>{
<a name="l00237"></a><a class="code" href="a00128.html#ac501e02fb6215295846d974a1476d241">00237</a>         <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr;            
<a name="l00238"></a><a class="code" href="a00128.html#aaa161f3ea66bea4e4b5b52ed5bb9d9f5">00238</a>         <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scope;          
<a name="l00239"></a><a class="code" href="a00128.html#afe8a7e1431c21fbb96cda7bf9c7757c4">00239</a>         <a class="code" href="a00122.html" title="An event block for a script.">event_t</a> *<a class="code" href="a00122.html" title="An event block for a script.">event</a>;         
<a name="l00240"></a><a class="code" href="a00128.html#a2d3b5a1105bb6fd210e3259409f6cc16">00240</a>         <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *<a class="code" href="a00126.html" title="Basic compiled statement.">line</a>;           
<a name="l00241"></a><a class="code" href="a00128.html#ac89ef3cb8b231dd1f47ba3de0ed5e471">00241</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> index;   
<a name="l00242"></a><a class="code" href="a00128.html#ac2bb641ca9c8055e991887db688f8192">00242</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> base;    
<a name="l00243"></a><a class="code" href="a00128.html#a4aa3dd0a9850ae6fc0158de791f660bc">00243</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> resmask; 
<a name="l00244"></a>00244     } <a class="code" href="a00128.html" title="Runtime stack for each interpreter instance.">stack_t</a>;
<a name="l00245"></a>00245 
<a name="l00256"></a><a class="code" href="a00124.html">00256</a>     <span class="keyword">class </span>__EXPORT <a class="code" href="a00124.html" title="An instance of the runtime interpreter.">interp</a> : <span class="keyword">protected</span> <a class="code" href="a00080.html" title="An alternate memory pager private heap manager.">memalloc</a>
<a name="l00257"></a>00257     {
<a name="l00258"></a>00258     <span class="keyword">public</span>:
<a name="l00259"></a>00259         <span class="keyword">typedef</span> <span class="keywordtype">char</span> num_t[16];
<a name="l00260"></a>00260 
<a name="l00261"></a>00261         <a class="code" href="a00124.html" title="An instance of the runtime interpreter.">interp</a>();
<a name="l00262"></a>00262         <span class="keyword">virtual</span> ~<a class="code" href="a00124.html" title="An instance of the runtime interpreter.">interp</a>();
<a name="l00263"></a>00263 
<a name="l00269"></a>00269         <span class="keywordtype">bool</span> step(<span class="keywordtype">void</span>);
<a name="l00270"></a>00270 
<a name="l00279"></a>00279         <span class="keywordtype">bool</span> attach(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *image, <span class="keyword">const</span> <span class="keywordtype">char</span> *entry = NULL);
<a name="l00280"></a>00280 
<a name="l00284"></a>00284         <span class="keywordtype">void</span> detach(<span class="keywordtype">void</span>);
<a name="l00285"></a>00285 
<a name="l00291"></a>00291         <span class="keywordtype">void</span> initialize(<span class="keywordtype">void</span>);
<a name="l00292"></a>00292 
<a name="l00297"></a>00297         <span class="keywordtype">bool</span> <a class="code" href="a00121.html" title="A class to collect compile-time errors.">error</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *text);
<a name="l00298"></a>00298 
<a name="l00303"></a>00303         <span class="keywordtype">unsigned</span> getResource(<span class="keywordtype">void</span>);
<a name="l00304"></a>00304 
<a name="l00305"></a>00305     <span class="keyword">protected</span>:
<a name="l00306"></a>00306         <a class="code" href="a00130.html" title="Contains instance of a runtime symbol.">symbol</a> *find(<span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">id</span>);
<a name="l00307"></a>00307         <span class="keywordtype">void</span> skip(<span class="keywordtype">void</span>);
<a name="l00308"></a>00308         <span class="keywordtype">void</span> <a class="code" href="a00214.html#ad3c146b0a18955ca36ae65ef8edacaa0" title="Push a linked object onto a stack of linked objects.">push</a>(<span class="keywordtype">void</span>);
<a name="l00309"></a>00309         <span class="keywordtype">bool</span> trylabel(<span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">id</span>);
<a name="l00310"></a>00310         <span class="keywordtype">bool</span> tryexit(<span class="keywordtype">void</span>);
<a name="l00311"></a>00311         <span class="keywordtype">void</span> pullScope(<span class="keywordtype">void</span>);
<a name="l00312"></a>00312         <span class="keywordtype">void</span> pullBase(<span class="keywordtype">void</span>);
<a name="l00313"></a>00313         <span class="keywordtype">void</span> pullLoop(<span class="keywordtype">void</span>);
<a name="l00314"></a>00314         <span class="keywordtype">bool</span> <a class="code" href="a00214.html#a93aa1abad68882a73a88db1c6bc28064" title="Pop a linked object from a stack of linked objects.">pop</a>(<span class="keywordtype">void</span>);
<a name="l00315"></a>00315         <span class="keywordtype">void</span> setStack(<a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <a class="code" href="a00122.html" title="An event block for a script.">event</a> *ev = NULL);
<a name="l00316"></a>00316         
<a name="l00324"></a>00324         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> match(<span class="keyword">const</span> <span class="keywordtype">char</span> *pattern, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);
<a name="l00325"></a>00325 
<a name="l00333"></a>00333         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isInherited(<span class="keyword">const</span> <span class="keywordtype">char</span> *name);
<a name="l00334"></a>00334 
<a name="l00342"></a>00342         <span class="keywordtype">bool</span> scriptEvent(<span class="keyword">const</span> <span class="keywordtype">char</span> *name);
<a name="l00343"></a>00343 
<a name="l00349"></a>00349         <span class="keyword">event</span> *scriptMethod(<span class="keyword">const</span> <span class="keywordtype">char</span> *name);
<a name="l00350"></a>00350         
<a name="l00351"></a>00351         <a class="code" href="a00128.html" title="Runtime stack for each interpreter instance.">stack_t</a> *<a class="code" href="a00155.html" title="Manage a thread-safe stack of objects through reference pointers.">stack</a>;
<a name="l00352"></a>00352         <a class="code" href="a00015.html">pointer&lt;script&gt;</a> image;
<a name="l00353"></a>00353         <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> **syms;
<a name="l00354"></a>00354         <span class="keywordtype">unsigned</span> frame;
<a name="l00355"></a>00355 
<a name="l00356"></a>00356         <span class="keywordtype">char</span> *getTemp(<span class="keywordtype">void</span>);
<a name="l00357"></a>00357         <span class="keywordtype">bool</span> setConst(<span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *value);
<a name="l00358"></a>00358         <a class="code" href="a00130.html" title="Contains instance of a runtime symbol.">symbol</a> *createSymbol(<span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">id</span>);
<a name="l00359"></a>00359         <a class="code" href="a00130.html" title="Contains instance of a runtime symbol.">symbol</a> *getVar(<span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *value = NULL);
<a name="l00360"></a>00360         <span class="keyword">const</span> <span class="keywordtype">char</span> *getValue(<span class="keywordtype">void</span>);
<a name="l00361"></a>00361         <span class="keyword">const</span> <span class="keywordtype">char</span> *getContent(<span class="keywordtype">void</span>);
<a name="l00362"></a>00362         <span class="keyword">const</span> <span class="keywordtype">char</span> *getContent(<span class="keyword">const</span> <span class="keywordtype">char</span> *text);
<a name="l00363"></a>00363         <span class="keyword">const</span> <span class="keywordtype">char</span> *getKeyword(<span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">id</span>);
<a name="l00364"></a>00364         method_t getLooping(<span class="keywordtype">void</span>);
<a name="l00365"></a>00365         <span class="keywordtype">bool</span> isConditional(<span class="keywordtype">unsigned</span> index);
<a name="l00366"></a>00366         <span class="keywordtype">void</span> setRef(<a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scope, <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">id</span>, <span class="keywordtype">char</span> *data, <span class="keywordtype">unsigned</span> size);
<a name="l00367"></a>00367         <span class="keywordtype">void</span> getParams(<a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scope, <a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *<a class="code" href="a00126.html" title="Basic compiled statement.">line</a>);
<a name="l00368"></a>00368         <span class="keywordtype">void</span> startScript(<a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr);
<a name="l00369"></a>00369 
<a name="l00370"></a>00370         <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> getTypesize(<span class="keyword">const</span> <span class="keywordtype">char</span> *type_id);
<a name="l00371"></a>00371         <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *getTypeinit(<span class="keyword">const</span> <span class="keywordtype">char</span> *type_id);
<a name="l00372"></a>00372         <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *getFormat(<a class="code" href="a00130.html" title="Contains instance of a runtime symbol.">symbol</a> *sym, <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">id</span>, <span class="keywordtype">char</span> *temp);
<a name="l00373"></a>00373         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getCondition(<span class="keyword">const</span> <span class="keywordtype">char</span> *test, <span class="keyword">const</span> <span class="keywordtype">char</span> *value);
<a name="l00374"></a>00374         <span class="keyword">const</span> <span class="keywordtype">char</span> *getIndex(<span class="keywordtype">void</span>);
<a name="l00375"></a>00375 
<a name="l00376"></a>00376     <span class="keyword">private</span>:
<a name="l00377"></a>00377         <span class="keywordtype">bool</span> getExpression(<span class="keywordtype">unsigned</span> index);
<a name="l00378"></a>00378 
<a name="l00379"></a>00379         <span class="keywordtype">char</span> *errmsg;
<a name="l00380"></a>00380         <span class="keywordtype">char</span> *temps[3];
<a name="l00381"></a>00381         <span class="keywordtype">unsigned</span> tempindex;
<a name="l00382"></a>00382     };
<a name="l00383"></a>00383 
<a name="l00390"></a><a class="code" href="a00121.html">00390</a>     <span class="keyword">class </span>__EXPORT <a class="code" href="a00121.html" title="A class to collect compile-time errors.">error</a> : <span class="keyword">public</span> <a class="code" href="a00100.html" title="A linked object base class for ordered objects.">OrderedObject</a>
<a name="l00391"></a>00391     {
<a name="l00392"></a>00392     <span class="keyword">private</span>:
<a name="l00393"></a>00393         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00119.html" title="Compiled script container.">script</a>;
<a name="l00394"></a>00394         <a class="code" href="a00121.html" title="A class to collect compile-time errors.">error</a>(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <span class="keywordtype">unsigned</span> <a class="code" href="a00126.html" title="Basic compiled statement.">line</a>, <span class="keyword">const</span> <span class="keywordtype">char</span> *str);
<a name="l00395"></a>00395 
<a name="l00396"></a>00396     <span class="keyword">public</span>:
<a name="l00397"></a>00397         <span class="keywordtype">char</span> *errmsg;
<a name="l00398"></a>00398         <span class="keywordtype">unsigned</span> errline;
<a name="l00399"></a>00399     };
<a name="l00400"></a>00400 
<a name="l00408"></a><a class="code" href="a00127.html">00408</a>     <span class="keyword">class </span>__EXPORT <a class="code" href="a00127.html" title="Runtime methods collection class.">methods</a> : <span class="keyword">public</span> <a class="code" href="a00124.html" title="An instance of the runtime interpreter.">interp</a>
<a name="l00409"></a>00409     {
<a name="l00410"></a>00410     <span class="keyword">public</span>:
<a name="l00411"></a>00411         <span class="keywordtype">bool</span> scrPush(<span class="keywordtype">void</span>);
<a name="l00412"></a>00412         <span class="keywordtype">bool</span> scrApply(<span class="keywordtype">void</span>);
<a name="l00413"></a>00413         <span class="keywordtype">bool</span> scrExpr(<span class="keywordtype">void</span>);
<a name="l00414"></a>00414         <span class="keywordtype">bool</span> scrVar(<span class="keywordtype">void</span>);
<a name="l00415"></a>00415         <span class="keywordtype">bool</span> scrSet(<span class="keywordtype">void</span>);
<a name="l00416"></a>00416         <span class="keywordtype">bool</span> scrAdd(<span class="keywordtype">void</span>);
<a name="l00417"></a>00417         <span class="keywordtype">bool</span> scrClear(<span class="keywordtype">void</span>);
<a name="l00418"></a>00418         <span class="keywordtype">bool</span> scrConst(<span class="keywordtype">void</span>);
<a name="l00419"></a>00419         <span class="keywordtype">bool</span> scrPause(<span class="keywordtype">void</span>);
<a name="l00420"></a>00420         <span class="keywordtype">bool</span> scrNop(<span class="keywordtype">void</span>);
<a name="l00421"></a>00421         <span class="keywordtype">bool</span> scrPack(<span class="keywordtype">void</span>);
<a name="l00422"></a>00422         <span class="keywordtype">bool</span> scrExpand(<span class="keywordtype">void</span>);
<a name="l00423"></a>00423         <span class="keywordtype">bool</span> scrExit(<span class="keywordtype">void</span>);
<a name="l00424"></a>00424         <span class="keywordtype">bool</span> scrReturn(<span class="keywordtype">void</span>);
<a name="l00425"></a>00425         <span class="keywordtype">bool</span> scrError(<span class="keywordtype">void</span>);
<a name="l00426"></a>00426         <span class="keywordtype">bool</span> scrRestart(<span class="keywordtype">void</span>);
<a name="l00427"></a>00427         <span class="keywordtype">bool</span> scrGosub(<span class="keywordtype">void</span>);
<a name="l00428"></a>00428         <span class="keywordtype">bool</span> scrGoto(<span class="keywordtype">void</span>);
<a name="l00429"></a>00429         <span class="keywordtype">bool</span> scrDo(<span class="keywordtype">void</span>);
<a name="l00430"></a>00430         <span class="keywordtype">bool</span> scrLoop(<span class="keywordtype">void</span>);
<a name="l00431"></a>00431         <span class="keywordtype">bool</span> scrUntil(<span class="keywordtype">void</span>);
<a name="l00432"></a>00432         <span class="keywordtype">bool</span> scrWhile(<span class="keywordtype">void</span>);
<a name="l00433"></a>00433         <span class="keywordtype">bool</span> scrBreak(<span class="keywordtype">void</span>);
<a name="l00434"></a>00434         <span class="keywordtype">bool</span> scrContinue(<span class="keywordtype">void</span>);
<a name="l00435"></a>00435         <span class="keywordtype">bool</span> scrForeach(<span class="keywordtype">void</span>);
<a name="l00436"></a>00436         <span class="keywordtype">bool</span> scrPrevious(<span class="keywordtype">void</span>);
<a name="l00437"></a>00437         <span class="keywordtype">bool</span> scrRepeat(<span class="keywordtype">void</span>);
<a name="l00438"></a>00438         <span class="keywordtype">bool</span> scrIndex(<span class="keywordtype">void</span>);
<a name="l00439"></a>00439         <span class="keywordtype">bool</span> scrCase(<span class="keywordtype">void</span>);
<a name="l00440"></a>00440         <span class="keywordtype">bool</span> scrEndcase(<span class="keywordtype">void</span>);
<a name="l00441"></a>00441         <span class="keywordtype">bool</span> scrOtherwise(<span class="keywordtype">void</span>);
<a name="l00442"></a>00442         <span class="keywordtype">bool</span> scrIf(<span class="keywordtype">void</span>);
<a name="l00443"></a>00443         <span class="keywordtype">bool</span> scrElif(<span class="keywordtype">void</span>);
<a name="l00444"></a>00444         <span class="keywordtype">bool</span> scrElse(<span class="keywordtype">void</span>);
<a name="l00445"></a>00445         <span class="keywordtype">bool</span> scrEndif(<span class="keywordtype">void</span>);
<a name="l00446"></a>00446         <span class="keywordtype">bool</span> scrDefine(<span class="keywordtype">void</span>);
<a name="l00447"></a>00447         <span class="keywordtype">bool</span> scrInvoke(<span class="keywordtype">void</span>);
<a name="l00448"></a>00448         <span class="keywordtype">bool</span> scrWhen(<span class="keywordtype">void</span>);
<a name="l00449"></a>00449         <span class="keywordtype">bool</span> scrRef(<span class="keywordtype">void</span>);
<a name="l00450"></a>00450     };
<a name="l00451"></a>00451 
<a name="l00452"></a>00452     ~<a class="code" href="a00119.html" title="Compiled script container.">script</a>();
<a name="l00453"></a>00453 
<a name="l00454"></a><a class="code" href="a00119.html#af6b81a273da048bcfafde61350effb54">00454</a>     <span class="keyword">static</span> <span class="keywordtype">unsigned</span> stepping;   
<a name="l00455"></a><a class="code" href="a00119.html#a009cb4f2225810b3376a14cd699c68b0">00455</a>     <span class="keyword">static</span> <span class="keywordtype">unsigned</span> indexing;   
<a name="l00456"></a><a class="code" href="a00119.html#ad5418d3ec068bd3483402eb0bc8e4198">00456</a>     <span class="keyword">static</span> <span class="keywordtype">size_t</span> paging;       
<a name="l00457"></a><a class="code" href="a00119.html#a1b37632881cc83b8516a6cc2bb59be13">00457</a>     <span class="keyword">static</span> <span class="keywordtype">unsigned</span> sizing;     
<a name="l00458"></a><a class="code" href="a00119.html#a9af0ee3395cbe8db4867b12743c7a023">00458</a>     <span class="keyword">static</span> <span class="keywordtype">unsigned</span> stacking;   
<a name="l00459"></a><a class="code" href="a00119.html#a4654b18dd8b3ab4953b3c9458dc8eb12">00459</a>     <span class="keyword">static</span> <span class="keywordtype">unsigned</span> decimals;   
<a name="l00470"></a>00470     <span class="keyword">static</span> <a class="code" href="a00119.html" title="Compiled script container.">script</a> *<a class="code" href="a00119.html#a449b6891f9866d038b66556d3a309ebb" title="Append a file into an existing image.">append</a>(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *merge, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename, <a class="code" href="a00119.html" title="Compiled script container.">script</a> *config = NULL);
<a name="l00471"></a>00471 
<a name="l00480"></a>00480     <span class="keyword">static</span> <a class="code" href="a00119.html" title="Compiled script container.">script</a> *<a class="code" href="a00119.html#a70ccfb986a7fa22640f9acbc2f99679d" title="Compile a script file into an image.">compile</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename, <a class="code" href="a00119.html" title="Compiled script container.">script</a> *config = NULL);
<a name="l00481"></a>00481 
<a name="l00482"></a>00482 
<a name="l00483"></a>00483 
<a name="l00493"></a>00493     <span class="keyword">static</span> <a class="code" href="a00119.html" title="Compiled script container.">script</a> *<a class="code" href="a00119.html#a0db5149347096e2a84760179d6a566b0" title="Compile and merge a script into an existing shared image.">merge</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename, <a class="code" href="a00119.html" title="Compiled script container.">script</a> *root = NULL);
<a name="l00494"></a>00494 
<a name="l00500"></a>00500     <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="a00119.html#a3a37c6372c0ee3acc87b961537a8211b" title="Assign new keywords from extensions and derived service.">assign</a>(<a class="code" href="a00125.html" title="A structure to introduce new core commands to the runtime engine.">keyword_t</a> *list);
<a name="l00501"></a>00501 
<a name="l00509"></a>00509     <span class="keyword">static</span> <a class="code" href="a00125.html" title="A structure to introduce new core commands to the runtime engine.">keyword_t</a> *find(<span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">id</span>);
<a name="l00510"></a>00510 
<a name="l00514"></a>00514     <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="a00119.html#ac393ef84f086a494cceec0b5ad43da7a" title="Initialize entire script engine.">init</a>(<span class="keywordtype">void</span>);
<a name="l00515"></a>00515 
<a name="l00516"></a>00516     <span class="keyword">static</span> <span class="keywordtype">unsigned</span> offset(<span class="keyword">const</span> <span class="keywordtype">char</span> *list, <span class="keywordtype">unsigned</span> index);
<a name="l00517"></a>00517     <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="a00093.html#aa0d1f1e892c05c421a4216905a72553d" title="Retain (increase retention of) object when copying.">copy</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *list, <span class="keywordtype">char</span> *item, <span class="keywordtype">unsigned</span> size);
<a name="l00518"></a>00518     <span class="keyword">static</span> <span class="keywordtype">unsigned</span> count(<span class="keyword">const</span> <span class="keywordtype">char</span> *list);
<a name="l00519"></a>00519     <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">get</span>(<span class="keyword">const</span> <span class="keywordtype">char</span> *list, <span class="keywordtype">unsigned</span> offset);
<a name="l00520"></a>00520     <span class="keyword">static</span> <span class="keywordtype">char</span> *<span class="keyword">get</span>(<span class="keywordtype">char</span> *list, <span class="keywordtype">unsigned</span> offset);
<a name="l00521"></a>00521     <span class="keyword">static</span> <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *find(<a class="code" href="a00119.html" title="Compiled script container.">script</a> *img, <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">id</span>);
<a name="l00522"></a>00522     <span class="keyword">static</span> <span class="keywordtype">bool</span> isEvent(<a class="code" href="a00123.html" title="Header describes a script section.">header</a> *scr, <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">id</span>);
<a name="l00523"></a>00523 
<a name="l00524"></a>00524     <a class="code" href="a00123.html" title="Header describes a script section.">header</a> *first;
<a name="l00525"></a>00525     <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> **scripts;
<a name="l00526"></a>00526 
<a name="l00527"></a>00527     <span class="keywordtype">bool</span> <a class="code" href="a00214.html#ad3c146b0a18955ca36ae65ef8edacaa0" title="Push a linked object onto a stack of linked objects.">push</a>(<a class="code" href="a00126.html" title="Basic compiled statement.">line_t</a> *<a class="code" href="a00126.html" title="Basic compiled statement.">line</a>);
<a name="l00528"></a>00528     method_t <a class="code" href="a00214.html#ac33cb2f400b01365f1ebff8d7fa62c9a" title="Pop a linked object from a stack of linked objects.">pull</a>(<span class="keywordtype">void</span>);
<a name="l00529"></a>00529     method_t looping(<span class="keywordtype">void</span>);
<a name="l00530"></a>00530 
<a name="l00531"></a>00531     <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> getErrors(<span class="keywordtype">void</span>)
<a name="l00532"></a>00532         {<span class="keywordflow">return</span> errors;};
<a name="l00533"></a>00533 
<a name="l00534"></a>00534     <span class="keyword">inline</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *getListing(<span class="keywordtype">void</span>)
<a name="l00535"></a>00535         {<span class="keywordflow">return</span> errlist.begin();};
<a name="l00536"></a>00536 
<a name="l00537"></a>00537     <span class="keyword">inline</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *getFilename(<span class="keywordtype">void</span>)
<a name="l00538"></a>00538         {<span class="keywordflow">return</span> filename;};
<a name="l00539"></a>00539 
<a name="l00540"></a>00540     <span class="keyword">inline</span> <span class="keywordtype">bool</span> isStrict(<span class="keywordtype">void</span>)
<a name="l00541"></a>00541         {<span class="keywordflow">return</span> global != NULL;};
<a name="l00542"></a>00542 
<a name="l00543"></a>00543     <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> getLines(<span class="keywordtype">void</span>)
<a name="l00544"></a>00544         {<span class="keywordflow">return</span> lines;};
<a name="l00545"></a>00545 
<a name="l00546"></a>00546 <span class="keyword">private</span>:
<a name="l00547"></a>00547     <span class="keyword">friend</span> <span class="keyword">class </span>strict;
<a name="l00548"></a>00548     <span class="keyword">friend</span> <span class="keyword">class </span>checks;
<a name="l00549"></a>00549     <span class="keyword">friend</span> <span class="keyword">class </span>error;
<a name="l00550"></a>00550     <span class="keyword">friend</span> <span class="keyword">class </span>interp;
<a name="l00551"></a>00551     <span class="keyword">friend</span> <span class="keyword">class </span>methods;
<a name="l00552"></a>00552 
<a name="l00553"></a>00553     script();
<a name="l00554"></a>00554 
<a name="l00555"></a>00555     <span class="keywordtype">void</span> errlog(<span class="keywordtype">unsigned</span> line, <span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...);
<a name="l00556"></a>00556 
<a name="l00557"></a>00557     <span class="keywordtype">unsigned</span> errors;
<a name="l00558"></a>00558     <span class="keywordtype">unsigned</span> loop;
<a name="l00559"></a>00559     <span class="keywordtype">unsigned</span> lines;
<a name="l00560"></a>00560     <span class="keywordtype">bool</span> thencheck;
<a name="l00561"></a>00561     line_t **stack;
<a name="l00562"></a>00562     LinkedObject *global;
<a name="l00563"></a>00563     OrderedIndex errlist;
<a name="l00564"></a>00564     pointer&lt;script&gt; shared;
<a name="l00565"></a>00565     <span class="keyword">const</span> <span class="keywordtype">char</span> *filename;
<a name="l00566"></a>00566     LinkedObject *headers;
<a name="l00567"></a>00567 };
<a name="l00568"></a>00568 
<a name="l00569"></a>00569 END_NAMESPACE
<a name="l00570"></a>00570 
<a name="l00571"></a>00571 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Tue Jul 6 08:22:01 2010 for UCommon by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>