-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmyparser.h
executable file
·121 lines (105 loc) · 2.85 KB
/
myparser.h
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
/****************************************************************************
* U N R E G I S T E R E D C O P Y
*
* You are on day 84 of your 30 day trial period.
*
* This file was produced by an UNREGISTERED COPY of Parser Generator. It is
* for evaluation purposes only. If you continue to use Parser Generator 30
* days after installation then you are required to purchase a license. For
* more information see the online help or go to the Bumble-Bee Software
* homepage at:
*
* http://www.bumblebeesoftware.com
*
* This notice must remain present in the file. It cannot be removed.
****************************************************************************/
/****************************************************************************
* myparser.h
* C++ header file generated from myparser.y.
*
* Date: 12/15/08
* Time: 08:20:05
*
* AYACC Version: 2.06
****************************************************************************/
#ifndef _MYPARSER_H
#define _MYPARSER_H
#include <yycpars.h>
/////////////////////////////////////////////////////////////////////////////
// myparser
#ifndef YYEXPPARSER
#define YYEXPPARSER
#endif
class YYEXPPARSER YYFAR myparser : public _YL yyfparser {
public:
myparser();
virtual ~myparser();
protected:
void yytables();
virtual void yyaction(int action);
#ifdef YYDEBUG
void YYFAR* yyattribute1(int index) const;
void yyinitdebug(void YYFAR** p, int count) const;
#endif
// attribute functions
virtual void yystacktoval(int index);
virtual void yyvaltostack(int index);
virtual void yylvaltoval();
virtual void yyvaltolval();
virtual void yylvaltostack(int index);
virtual void YYFAR* yynewattribute(int count);
virtual void yydeleteattribute(void YYFAR* attribute);
virtual void yycopyattribute(void YYFAR* dest, const void YYFAR* src, int count);
public:
#line 147 ".\\myparser.y"
// place any extra class members here
#line 69 "myparser.h"
};
#ifndef YYPARSERNAME
#define YYPARSERNAME myparser
#endif
#line 162 ".\\myparser.y"
#ifndef YYSTYPE
#define YYSTYPE TreeNode*
#endif
#line 82 "myparser.h"
#define VOID 257
#define MAIN 258
#define INT 259
#define CHAR 260
#define FLOAT 261
#define BOOL 262
#define IF 263
#define ELSE 264
#define WHILE 265
#define FOR 266
#define LSBRA 267
#define RSBRA 268
#define LLSBRA 269
#define RLSBRA 270
#define SEMIC 271
#define ADD 272
#define SUB 273
#define MUL 274
#define DIV 275
#define PERC 276
#define DADD 277
#define DSUB 278
#define GREAT 279
#define LESS 280
#define EQU 281
#define GEQU 282
#define LEQU 283
#define NEQU 284
#define NOT 285
#define AND 286
#define OR 287
#define COUNTINTNUM 288
#define COUNTFLOATNUM 289
#define COUNTCHAR 290
#define ID 291
#define TRUE 292
#define FALSE 293
#define EVALU 294
#define UMINUS 295
#endif