new files of 0.5.2
[fw/sdcc] / sim / ucsim / cmd.src / cmdpars.h
1 #ifndef YY_cl_ucsim_parser_h_included
2 #define YY_cl_ucsim_parser_h_included
3 #define YY_USE_CLASS
4
5 #line 1 "/usr/share/bison++/bison.h"
6 /* before anything */
7 #ifdef c_plusplus
8  #ifndef __cplusplus
9   #define __cplusplus
10  #endif
11 #endif
12
13
14  #line 8 "/usr/share/bison++/bison.h"
15 #define YY_cl_ucsim_parser_INHERIT  : public cl_base
16 #define YY_cl_ucsim_parser_MEMBERS  class cl_ucsim_lexer *lexer_object;\
17 virtual ~YY_cl_ucsim_parser_CLASS(void) { delete lexer_object; }
18 #define YY_cl_ucsim_parser_CONSTRUCTOR_PARAM  \
19 class cl_ucsim_lexer *the_lexer
20 #define YY_cl_ucsim_parser_CONSTRUCTOR_CODE  \
21 lexer_object= the_lexer;
22
23 #line 43 "cmdpars.y"
24 typedef union {
25   long number;
26   class cl_memory *memory_object;
27   struct {
28     class cl_memory *memory;
29     long address;
30   } memory;
31   struct {
32     class cl_memory *memory;
33     long mem_address, bit_address;
34     long mask;
35   } bit;
36 } yy_cl_ucsim_parser_stype;
37 #define YY_cl_ucsim_parser_STYPE yy_cl_ucsim_parser_stype
38
39 #line 21 "/usr/share/bison++/bison.h"
40  /* %{ and %header{ and %union, during decl */
41 #ifndef YY_cl_ucsim_parser_COMPATIBILITY
42  #ifndef YY_USE_CLASS
43   #define  YY_cl_ucsim_parser_COMPATIBILITY 1
44  #else
45   #define  YY_cl_ucsim_parser_COMPATIBILITY 0
46  #endif
47 #endif
48
49 #if YY_cl_ucsim_parser_COMPATIBILITY != 0
50 /* backward compatibility */
51  #ifdef YYLTYPE
52   #ifndef YY_cl_ucsim_parser_LTYPE
53    #define YY_cl_ucsim_parser_LTYPE YYLTYPE
54 /* WARNING obsolete !!! user defined YYLTYPE not reported into generated header */
55 /* use %define LTYPE */
56   #endif
57  #endif
58 /*#ifdef YYSTYPE*/
59   #ifndef YY_cl_ucsim_parser_STYPE
60    #define YY_cl_ucsim_parser_STYPE YYSTYPE
61   /* WARNING obsolete !!! user defined YYSTYPE not reported into generated header */
62    /* use %define STYPE */
63   #endif
64 /*#endif*/
65  #ifdef YYDEBUG
66   #ifndef YY_cl_ucsim_parser_DEBUG
67    #define  YY_cl_ucsim_parser_DEBUG YYDEBUG
68    /* WARNING obsolete !!! user defined YYDEBUG not reported into generated header */
69    /* use %define DEBUG */
70   #endif
71  #endif 
72  /* use goto to be compatible */
73  #ifndef YY_cl_ucsim_parser_USE_GOTO
74   #define YY_cl_ucsim_parser_USE_GOTO 1
75  #endif
76 #endif
77
78 /* use no goto to be clean in C++ */
79 #ifndef YY_cl_ucsim_parser_USE_GOTO
80  #define YY_cl_ucsim_parser_USE_GOTO 0
81 #endif
82
83 #ifndef YY_cl_ucsim_parser_PURE
84
85  #line 65 "/usr/share/bison++/bison.h"
86 #define YY_cl_ucsim_parser_PURE 1
87
88
89 #line 65 "/usr/share/bison++/bison.h"
90 /* YY_cl_ucsim_parser_PURE */
91 #endif
92
93
94  #line 68 "/usr/share/bison++/bison.h"
95
96 #line 68 "/usr/share/bison++/bison.h"
97 /* prefix */
98
99 #ifndef YY_cl_ucsim_parser_DEBUG
100
101  #line 71 "/usr/share/bison++/bison.h"
102
103 #line 71 "/usr/share/bison++/bison.h"
104 /* YY_cl_ucsim_parser_DEBUG */
105 #endif
106
107 #ifndef YY_cl_ucsim_parser_LSP_NEEDED
108
109  #line 75 "/usr/share/bison++/bison.h"
110
111 #line 75 "/usr/share/bison++/bison.h"
112  /* YY_cl_ucsim_parser_LSP_NEEDED*/
113 #endif
114
115 /* DEFAULT LTYPE*/
116 #ifdef YY_cl_ucsim_parser_LSP_NEEDED
117  #ifndef YY_cl_ucsim_parser_LTYPE
118   #ifndef BISON_YYLTYPE_ISDECLARED
119    #define BISON_YYLTYPE_ISDECLARED
120 typedef
121   struct yyltype
122     {
123       int timestamp;
124       int first_line;
125       int first_column;
126       int last_line;
127       int last_column;
128       char *text;
129    }
130   yyltype;
131   #endif
132
133   #define YY_cl_ucsim_parser_LTYPE yyltype
134  #endif
135 #endif
136
137 /* DEFAULT STYPE*/
138 #ifndef YY_cl_ucsim_parser_STYPE
139  #define YY_cl_ucsim_parser_STYPE int
140 #endif
141
142 /* DEFAULT MISCELANEOUS */
143 #ifndef YY_cl_ucsim_parser_PARSE
144  #define YY_cl_ucsim_parser_PARSE yyparse
145 #endif
146
147 #ifndef YY_cl_ucsim_parser_LEX
148  #define YY_cl_ucsim_parser_LEX yylex
149 #endif
150
151 #ifndef YY_cl_ucsim_parser_LVAL
152  #define YY_cl_ucsim_parser_LVAL yylval
153 #endif
154
155 #ifndef YY_cl_ucsim_parser_LLOC
156  #define YY_cl_ucsim_parser_LLOC yylloc
157 #endif
158
159 #ifndef YY_cl_ucsim_parser_CHAR
160  #define YY_cl_ucsim_parser_CHAR yychar
161 #endif
162
163 #ifndef YY_cl_ucsim_parser_NERRS
164  #define YY_cl_ucsim_parser_NERRS yynerrs
165 #endif
166
167 #ifndef YY_cl_ucsim_parser_DEBUG_FLAG
168  #define YY_cl_ucsim_parser_DEBUG_FLAG yydebug
169 #endif
170
171 #ifndef YY_cl_ucsim_parser_ERROR
172  #define YY_cl_ucsim_parser_ERROR yyerror
173 #endif
174
175 #ifndef YY_cl_ucsim_parser_PARSE_PARAM
176  #ifndef __STDC__
177   #ifndef __cplusplus
178    #ifndef YY_USE_CLASS
179     #define YY_cl_ucsim_parser_PARSE_PARAM
180     #ifndef YY_cl_ucsim_parser_PARSE_PARAM_DEF
181      #define YY_cl_ucsim_parser_PARSE_PARAM_DEF
182     #endif
183    #endif
184   #endif
185  #endif
186  #ifndef YY_cl_ucsim_parser_PARSE_PARAM
187   #define YY_cl_ucsim_parser_PARSE_PARAM void
188  #endif
189 #endif
190
191 /* TOKEN C */
192 #ifndef YY_USE_CLASS
193
194  #ifndef YY_cl_ucsim_parser_PURE
195   #ifndef yylval
196    extern YY_cl_ucsim_parser_STYPE YY_cl_ucsim_parser_LVAL;
197   #else
198    #if yylval != YY_cl_ucsim_parser_LVAL
199     extern YY_cl_ucsim_parser_STYPE YY_cl_ucsim_parser_LVAL;
200    #else
201     #warning "Namespace conflict, disabling some functionality (bison++ only)"
202    #endif
203   #endif
204  #endif
205
206
207  #line 169 "/usr/share/bison++/bison.h"
208 #define PTOK_PLUS       258
209 #define PTOK_MINUS      259
210 #define PTOK_ASTERIX    260
211 #define PTOK_SLASH      261
212 #define PTOK_EQUAL      262
213 #define PTOK_LEFT_PAREN 263
214 #define PTOK_RIGHT_PAREN        264
215 #define PTOK_LEFT_BRACKET       265
216 #define PTOK_RIGHT_BRACKET      266
217 #define PTOK_DOT        267
218 #define PTOK_AMPERSAND  268
219 #define PTOK_MEMORY_OBJECT      269
220 #define PTOK_MEMORY     270
221 #define PTOK_NUMBER     271
222 #define PTOK_BIT        272
223 #define UNARYMINUS      273
224
225
226 #line 169 "/usr/share/bison++/bison.h"
227  /* #defines token */
228 /* after #define tokens, before const tokens S5*/
229 #else
230  #ifndef YY_cl_ucsim_parser_CLASS
231   #define YY_cl_ucsim_parser_CLASS cl_ucsim_parser
232  #endif
233
234  #ifndef YY_cl_ucsim_parser_INHERIT
235   #define YY_cl_ucsim_parser_INHERIT
236  #endif
237
238  #ifndef YY_cl_ucsim_parser_MEMBERS
239   #define YY_cl_ucsim_parser_MEMBERS 
240  #endif
241
242  #ifndef YY_cl_ucsim_parser_LEX_BODY
243   #define YY_cl_ucsim_parser_LEX_BODY  
244  #endif
245
246  #ifndef YY_cl_ucsim_parser_ERROR_BODY
247   #define YY_cl_ucsim_parser_ERROR_BODY  
248  #endif
249
250  #ifndef YY_cl_ucsim_parser_CONSTRUCTOR_PARAM
251   #define YY_cl_ucsim_parser_CONSTRUCTOR_PARAM
252  #endif
253  /* choose between enum and const */
254  #ifndef YY_cl_ucsim_parser_USE_CONST_TOKEN
255   #define YY_cl_ucsim_parser_USE_CONST_TOKEN 0
256   /* yes enum is more compatible with flex,  */
257   /* so by default we use it */ 
258  #endif
259  #if YY_cl_ucsim_parser_USE_CONST_TOKEN != 0
260   #ifndef YY_cl_ucsim_parser_ENUM_TOKEN
261    #define YY_cl_ucsim_parser_ENUM_TOKEN yy_cl_ucsim_parser_enum_token
262   #endif
263  #endif
264
265 class YY_cl_ucsim_parser_CLASS YY_cl_ucsim_parser_INHERIT
266 {
267 public: 
268  #if YY_cl_ucsim_parser_USE_CONST_TOKEN != 0
269   /* static const int token ... */
270   
271  #line 212 "/usr/share/bison++/bison.h"
272 static const int PTOK_PLUS;
273 static const int PTOK_MINUS;
274 static const int PTOK_ASTERIX;
275 static const int PTOK_SLASH;
276 static const int PTOK_EQUAL;
277 static const int PTOK_LEFT_PAREN;
278 static const int PTOK_RIGHT_PAREN;
279 static const int PTOK_LEFT_BRACKET;
280 static const int PTOK_RIGHT_BRACKET;
281 static const int PTOK_DOT;
282 static const int PTOK_AMPERSAND;
283 static const int PTOK_MEMORY_OBJECT;
284 static const int PTOK_MEMORY;
285 static const int PTOK_NUMBER;
286 static const int PTOK_BIT;
287 static const int UNARYMINUS;
288
289
290 #line 212 "/usr/share/bison++/bison.h"
291  /* decl const */
292  #else
293   enum YY_cl_ucsim_parser_ENUM_TOKEN { YY_cl_ucsim_parser_NULL_TOKEN=0
294   
295  #line 215 "/usr/share/bison++/bison.h"
296         ,PTOK_PLUS=258
297         ,PTOK_MINUS=259
298         ,PTOK_ASTERIX=260
299         ,PTOK_SLASH=261
300         ,PTOK_EQUAL=262
301         ,PTOK_LEFT_PAREN=263
302         ,PTOK_RIGHT_PAREN=264
303         ,PTOK_LEFT_BRACKET=265
304         ,PTOK_RIGHT_BRACKET=266
305         ,PTOK_DOT=267
306         ,PTOK_AMPERSAND=268
307         ,PTOK_MEMORY_OBJECT=269
308         ,PTOK_MEMORY=270
309         ,PTOK_NUMBER=271
310         ,PTOK_BIT=272
311         ,UNARYMINUS=273
312
313
314 #line 215 "/usr/share/bison++/bison.h"
315  /* enum token */
316      }; /* end of enum declaration */
317  #endif
318 public:
319  int YY_cl_ucsim_parser_PARSE(YY_cl_ucsim_parser_PARSE_PARAM);
320  virtual void YY_cl_ucsim_parser_ERROR(char *msg) YY_cl_ucsim_parser_ERROR_BODY;
321  #ifdef YY_cl_ucsim_parser_PURE
322   #ifdef YY_cl_ucsim_parser_LSP_NEEDED
323    virtual int  YY_cl_ucsim_parser_LEX(YY_cl_ucsim_parser_STYPE *YY_cl_ucsim_parser_LVAL,YY_cl_ucsim_parser_LTYPE *YY_cl_ucsim_parser_LLOC) YY_cl_ucsim_parser_LEX_BODY;
324   #else
325    virtual int  YY_cl_ucsim_parser_LEX(YY_cl_ucsim_parser_STYPE *YY_cl_ucsim_parser_LVAL) YY_cl_ucsim_parser_LEX_BODY;
326   #endif
327  #else
328   virtual int YY_cl_ucsim_parser_LEX() YY_cl_ucsim_parser_LEX_BODY;
329   YY_cl_ucsim_parser_STYPE YY_cl_ucsim_parser_LVAL;
330   #ifdef YY_cl_ucsim_parser_LSP_NEEDED
331    YY_cl_ucsim_parser_LTYPE YY_cl_ucsim_parser_LLOC;
332   #endif
333   int YY_cl_ucsim_parser_NERRS;
334   int YY_cl_ucsim_parser_CHAR;
335  #endif
336  #if YY_cl_ucsim_parser_DEBUG != 0
337   public:
338    int YY_cl_ucsim_parser_DEBUG_FLAG;   /*  nonzero means print parse trace     */
339  #endif
340 public:
341  YY_cl_ucsim_parser_CLASS(YY_cl_ucsim_parser_CONSTRUCTOR_PARAM);
342 public:
343  YY_cl_ucsim_parser_MEMBERS 
344 };
345 /* other declare folow */
346 #endif
347
348
349 #if YY_cl_ucsim_parser_COMPATIBILITY != 0
350  /* backward compatibility */
351  /* Removed due to bison problems
352  /#ifndef YYSTYPE
353  / #define YYSTYPE YY_cl_ucsim_parser_STYPE
354  /#endif*/
355
356  #ifndef YYLTYPE
357   #define YYLTYPE YY_cl_ucsim_parser_LTYPE
358  #endif
359  #ifndef YYDEBUG
360   #ifdef YY_cl_ucsim_parser_DEBUG 
361    #define YYDEBUG YY_cl_ucsim_parser_DEBUG
362   #endif
363  #endif
364
365 #endif
366 /* END */
367
368  #line 267 "/usr/share/bison++/bison.h"
369 #endif