Menu â–¾ â–´

[39a9d1]: / parser.h  Maximize  Restore  History

Download this file

420 lines (381 with data), 9.4 kB

  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
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
#ifndef YY_MyParser_h_included
#define YY_MyParser_h_included
#line 1 "M:\\kbase\\src\\release\\2A\\debug\\gnuwin32\\bin\\bison.h"
/* before anything */
#ifdef c_plusplus
#ifndef __cplusplus
#define __cplusplus
#endif
#endif
#ifdef __cplusplus
#ifndef YY_USE_CLASS
#define YY_USE_CLASS
#endif
#else
#endif
#include <stdio.h>
/* #line 14 "M:\\kbase\\src\\release\\2A\\debug\\gnuwin32\\bin\\bison.h" */
#line 21 "parser.h"
#define YY_MyParser_LSP_NEEDED
#define YY_MyParser_ERROR_BODY =0
#define YY_MyParser_LEX_BODY =0
#line 7 "pcode.y"
// ------------------------------------
// dBase for Linux (c) 2012 Jens Kallup
// All Rights Reserved.
// ------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdarg.h>
#include <signal.h>
#include <iostream>
#include <fstream>
#line 72 "pcode.y"
typedef union {
int type;
float val;
char* id;
char* text;
int trfa;
} yy_MyParser_stype;
#define YY_MyParser_STYPE yy_MyParser_stype
#line 14 "M:\\kbase\\src\\release\\2A\\debug\\gnuwin32\\bin\\bison.h"
/* %{ and %header{ and %union, during decl */
#ifndef YY_MyParser_COMPATIBILITY
#ifndef YY_USE_CLASS
#define YY_MyParser_COMPATIBILITY 1
#else
#define YY_MyParser_COMPATIBILITY 0
#endif
#endif
#if YY_MyParser_COMPATIBILITY != 0
/* backward compatibility */
#ifdef YYLTYPE
#ifndef YY_MyParser_LTYPE
#define YY_MyParser_LTYPE YYLTYPE
/* WARNING obsolete !!! user defined YYLTYPE not reported into generated header */
/* use %define LTYPE */
#endif
#endif
#ifdef YYSTYPE
#ifndef YY_MyParser_STYPE
#define YY_MyParser_STYPE YYSTYPE
/* WARNING obsolete !!! user defined YYSTYPE not reported into generated header */
/* use %define STYPE */
#endif
#endif
#ifdef YYDEBUG
#ifndef YY_MyParser_DEBUG
#define YY_MyParser_DEBUG YYDEBUG
/* WARNING obsolete !!! user defined YYDEBUG not reported into generated header */
/* use %define DEBUG */
#endif
#endif
#ifdef YY_MyParser_STYPE
#ifndef yystype
#define yystype YY_MyParser_STYPE
#endif
#endif
/* use goto to be compatible */
#ifndef YY_MyParser_USE_GOTO
#define YY_MyParser_USE_GOTO 1
#endif
#endif
/* use no goto to be clean in C++ */
#ifndef YY_MyParser_USE_GOTO
#define YY_MyParser_USE_GOTO 0
#endif
#ifndef YY_MyParser_PURE
/* #line 63 "M:\\kbase\\src\\release\\2A\\debug\\gnuwin32\\bin\\bison.h" */
#line 103 "parser.h"
#line 63 "M:\\kbase\\src\\release\\2A\\debug\\gnuwin32\\bin\\bison.h"
/* YY_MyParser_PURE */
#endif
/* #line 65 "M:\\kbase\\src\\release\\2A\\debug\\gnuwin32\\bin\\bison.h" */
#line 110 "parser.h"
#line 65 "M:\\kbase\\src\\release\\2A\\debug\\gnuwin32\\bin\\bison.h"
/* prefix */
#ifndef YY_MyParser_DEBUG
/* #line 67 "M:\\kbase\\src\\release\\2A\\debug\\gnuwin32\\bin\\bison.h" */
#line 117 "parser.h"
#line 67 "M:\\kbase\\src\\release\\2A\\debug\\gnuwin32\\bin\\bison.h"
/* YY_MyParser_DEBUG */
#endif
#ifndef YY_MyParser_LSP_NEEDED
/* #line 70 "M:\\kbase\\src\\release\\2A\\debug\\gnuwin32\\bin\\bison.h" */
#line 125 "parser.h"
#line 70 "M:\\kbase\\src\\release\\2A\\debug\\gnuwin32\\bin\\bison.h"
/* YY_MyParser_LSP_NEEDED*/
#endif
/* DEFAULT LTYPE*/
#ifdef YY_MyParser_LSP_NEEDED
#ifndef YY_MyParser_LTYPE
typedef
struct yyltype
{
int timestamp;
int first_line;
int first_column;
int last_line;
int last_column;
char *text;
}
yyltype;
#define YY_MyParser_LTYPE yyltype
#endif
#endif
/* DEFAULT STYPE*/
#ifndef YY_MyParser_STYPE
#define YY_MyParser_STYPE int
#endif
/* DEFAULT MISCELANEOUS */
#ifndef YY_MyParser_PARSE
#define YY_MyParser_PARSE yyparse
#endif
#ifndef YY_MyParser_LEX
#define YY_MyParser_LEX yylex
#endif
#ifndef YY_MyParser_LVAL
#define YY_MyParser_LVAL yylval
#endif
#ifndef YY_MyParser_LLOC
#define YY_MyParser_LLOC yylloc
#endif
#ifndef YY_MyParser_CHAR
#define YY_MyParser_CHAR yychar
#endif
#ifndef YY_MyParser_NERRS
#define YY_MyParser_NERRS yynerrs
#endif
#ifndef YY_MyParser_DEBUG_FLAG
#define YY_MyParser_DEBUG_FLAG yydebug
#endif
#ifndef YY_MyParser_ERROR
#define YY_MyParser_ERROR yyerror
#endif
#ifndef YY_MyParser_PARSE_PARAM
#ifndef __STDC__
#ifndef __cplusplus
#ifndef YY_USE_CLASS
#define YY_MyParser_PARSE_PARAM
#ifndef YY_MyParser_PARSE_PARAM_DEF
#define YY_MyParser_PARSE_PARAM_DEF
#endif
#endif
#endif
#endif
#ifndef YY_MyParser_PARSE_PARAM
#define YY_MyParser_PARSE_PARAM void
#endif
#endif
/* TOKEN C */
#ifndef YY_USE_CLASS
#ifndef YY_MyParser_PURE
extern YY_MyParser_STYPE YY_MyParser_LVAL;
#endif
/* #line 143 "M:\\kbase\\src\\release\\2A\\debug\\gnuwin32\\bin\\bison.h" */
#line 203 "parser.h"
#define _NUM_ 258
#define _ID_ 259
#define _ASSIGN_ 260
#define _PLUS_ 261
#define _MINUS_ 262
#define _DIV_ 263
#define _MUL_ 264
#define _MOD_ 265
#define _POW_ 266
#define _OBR_ 267
#define _CBR_ 268
#define _NEW_ 269
#define _CLASS_ 270
#define _OF_ 271
#define _ENDCLASS_ 272
#define _WITH_ 273
#define _ENDWITH_ 274
#define _LOCAL_ 275
#define _COMMA_ 276
#define _POINT_ 277
#define _STRING_ 278
#define _FUNCTION_ 279
#define _RETURN_ 280
#define _DBPOINT_ 281
#define _MSGBOX_ 282
#define _EQUAL_ 283
#define _PARAMETER_ 284
#define _IF_ 285
#define _ELSE_ 286
#define _ENDIF_ 287
#define _NOT_ 288
#define _TRUE_ 289
#define _FALSE_ 290
#define _OBR2_ 291
#define _CBR2_ 292
#line 143 "M:\\kbase\\src\\release\\2A\\debug\\gnuwin32\\bin\\bison.h"
/* #defines token */
/* after #define tokens, before const tokens S5*/
#else
#ifndef YY_MyParser_CLASS
#define YY_MyParser_CLASS MyParser
#endif
#ifndef YY_MyParser_INHERIT
#define YY_MyParser_INHERIT
#endif
#ifndef YY_MyParser_MEMBERS
#define YY_MyParser_MEMBERS
#endif
#ifndef YY_MyParser_LEX_BODY
#define YY_MyParser_LEX_BODY
#endif
#ifndef YY_MyParser_ERROR_BODY
#define YY_MyParser_ERROR_BODY
#endif
#ifndef YY_MyParser_CONSTRUCTOR_PARAM
#define YY_MyParser_CONSTRUCTOR_PARAM
#endif
/* choose between enum and const */
#ifndef YY_MyParser_USE_CONST_TOKEN
#define YY_MyParser_USE_CONST_TOKEN 0
/* yes enum is more compatible with flex, */
/* so by default we use it */
#endif
#if YY_MyParser_USE_CONST_TOKEN != 0
#ifndef YY_MyParser_ENUM_TOKEN
#define YY_MyParser_ENUM_TOKEN yy_MyParser_enum_token
#endif
#endif
class YY_MyParser_CLASS YY_MyParser_INHERIT
{
public:
#if YY_MyParser_USE_CONST_TOKEN != 0
/* static const int token ... */
/* #line 182 "M:\\kbase\\src\\release\\2A\\debug\\gnuwin32\\bin\\bison.h" */
#line 283 "parser.h"
static const int _NUM_;
static const int _ID_;
static const int _ASSIGN_;
static const int _PLUS_;
static const int _MINUS_;
static const int _DIV_;
static const int _MUL_;
static const int _MOD_;
static const int _POW_;
static const int _OBR_;
static const int _CBR_;
static const int _NEW_;
static const int _CLASS_;
static const int _OF_;
static const int _ENDCLASS_;
static const int _WITH_;
static const int _ENDWITH_;
static const int _LOCAL_;
static const int _COMMA_;
static const int _POINT_;
static const int _STRING_;
static const int _FUNCTION_;
static const int _RETURN_;
static const int _DBPOINT_;
static const int _MSGBOX_;
static const int _EQUAL_;
static const int _PARAMETER_;
static const int _IF_;
static const int _ELSE_;
static const int _ENDIF_;
static const int _NOT_;
static const int _TRUE_;
static const int _FALSE_;
static const int _OBR2_;
static const int _CBR2_;
#line 182 "M:\\kbase\\src\\release\\2A\\debug\\gnuwin32\\bin\\bison.h"
/* decl const */
#else
enum YY_MyParser_ENUM_TOKEN { YY_MyParser_NULL_TOKEN=0
/* #line 185 "M:\\kbase\\src\\release\\2A\\debug\\gnuwin32\\bin\\bison.h" */
#line 327 "parser.h"
,_NUM_=258
,_ID_=259
,_ASSIGN_=260
,_PLUS_=261
,_MINUS_=262
,_DIV_=263
,_MUL_=264
,_MOD_=265
,_POW_=266
,_OBR_=267
,_CBR_=268
,_NEW_=269
,_CLASS_=270
,_OF_=271
,_ENDCLASS_=272
,_WITH_=273
,_ENDWITH_=274
,_LOCAL_=275
,_COMMA_=276
,_POINT_=277
,_STRING_=278
,_FUNCTION_=279
,_RETURN_=280
,_DBPOINT_=281
,_MSGBOX_=282
,_EQUAL_=283
,_PARAMETER_=284
,_IF_=285
,_ELSE_=286
,_ENDIF_=287
,_NOT_=288
,_TRUE_=289
,_FALSE_=290
,_OBR2_=291
,_CBR2_=292
#line 185 "M:\\kbase\\src\\release\\2A\\debug\\gnuwin32\\bin\\bison.h"
/* enum token */
}; /* end of enum declaration */
#endif
public:
int YY_MyParser_PARSE(YY_MyParser_PARSE_PARAM);
virtual void YY_MyParser_ERROR(char *msg) YY_MyParser_ERROR_BODY;
#ifdef YY_MyParser_PURE
#ifdef YY_MyParser_LSP_NEEDED
virtual int YY_MyParser_LEX(YY_MyParser_STYPE *YY_MyParser_LVAL,YY_MyParser_LTYPE *YY_MyParser_LLOC) YY_MyParser_LEX_BODY;
#else
virtual int YY_MyParser_LEX(YY_MyParser_STYPE *YY_MyParser_LVAL) YY_MyParser_LEX_BODY;
#endif
#else
virtual int YY_MyParser_LEX() YY_MyParser_LEX_BODY;
YY_MyParser_STYPE YY_MyParser_LVAL;
#ifdef YY_MyParser_LSP_NEEDED
YY_MyParser_LTYPE YY_MyParser_LLOC;
#endif
int YY_MyParser_NERRS;
int YY_MyParser_CHAR;
#endif
#if YY_MyParser_DEBUG != 0
public:
int YY_MyParser_DEBUG_FLAG; /* nonzero means print parse trace */
#endif
public:
YY_MyParser_CLASS(YY_MyParser_CONSTRUCTOR_PARAM);
public:
YY_MyParser_MEMBERS
};
/* other declare folow */
#endif
#if YY_MyParser_COMPATIBILITY != 0
/* backward compatibility */
#ifndef YYSTYPE
#define YYSTYPE YY_MyParser_STYPE
#endif
#ifndef YYLTYPE
#define YYLTYPE YY_MyParser_LTYPE
#endif
#ifndef YYDEBUG
#ifdef YY_MyParser_DEBUG
#define YYDEBUG YY_MyParser_DEBUG
#endif
#endif
#endif
/* END */
/* #line 236 "M:\\kbase\\src\\release\\2A\\debug\\gnuwin32\\bin\\bison.h" */
#line 419 "parser.h"
#endif