1 #ifndef YY_cl_ucsim_parser_h_included
2 #define YY_cl_ucsim_parser_h_included
5 #line 1 "/usr/share/bison++/bison.h"
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;
26 class cl_memory *memory_object;
28 class cl_memory *memory;
32 class cl_memory *memory;
33 long mem_address, bit_address;
36 } yy_cl_ucsim_parser_stype;
37 #define YY_cl_ucsim_parser_STYPE yy_cl_ucsim_parser_stype
39 #line 21 "/usr/share/bison++/bison.h"
40 /* %{ and %header{ and %union, during decl */
41 #ifndef YY_cl_ucsim_parser_COMPATIBILITY
43 #define YY_cl_ucsim_parser_COMPATIBILITY 1
45 #define YY_cl_ucsim_parser_COMPATIBILITY 0
49 #if YY_cl_ucsim_parser_COMPATIBILITY != 0
50 /* backward compatibility */
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 */
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 */
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 */
72 /* use goto to be compatible */
73 #ifndef YY_cl_ucsim_parser_USE_GOTO
74 #define YY_cl_ucsim_parser_USE_GOTO 1
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
83 #ifndef YY_cl_ucsim_parser_PURE
85 #line 65 "/usr/share/bison++/bison.h"
86 #define YY_cl_ucsim_parser_PURE 1
89 #line 65 "/usr/share/bison++/bison.h"
90 /* YY_cl_ucsim_parser_PURE */
94 #line 68 "/usr/share/bison++/bison.h"
96 #line 68 "/usr/share/bison++/bison.h"
99 #ifndef YY_cl_ucsim_parser_DEBUG
101 #line 71 "/usr/share/bison++/bison.h"
103 #line 71 "/usr/share/bison++/bison.h"
104 /* YY_cl_ucsim_parser_DEBUG */
107 #ifndef YY_cl_ucsim_parser_LSP_NEEDED
109 #line 75 "/usr/share/bison++/bison.h"
111 #line 75 "/usr/share/bison++/bison.h"
112 /* YY_cl_ucsim_parser_LSP_NEEDED*/
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
133 #define YY_cl_ucsim_parser_LTYPE yyltype
138 #ifndef YY_cl_ucsim_parser_STYPE
139 #define YY_cl_ucsim_parser_STYPE int
142 /* DEFAULT MISCELANEOUS */
143 #ifndef YY_cl_ucsim_parser_PARSE
144 #define YY_cl_ucsim_parser_PARSE yyparse
147 #ifndef YY_cl_ucsim_parser_LEX
148 #define YY_cl_ucsim_parser_LEX yylex
151 #ifndef YY_cl_ucsim_parser_LVAL
152 #define YY_cl_ucsim_parser_LVAL yylval
155 #ifndef YY_cl_ucsim_parser_LLOC
156 #define YY_cl_ucsim_parser_LLOC yylloc
159 #ifndef YY_cl_ucsim_parser_CHAR
160 #define YY_cl_ucsim_parser_CHAR yychar
163 #ifndef YY_cl_ucsim_parser_NERRS
164 #define YY_cl_ucsim_parser_NERRS yynerrs
167 #ifndef YY_cl_ucsim_parser_DEBUG_FLAG
168 #define YY_cl_ucsim_parser_DEBUG_FLAG yydebug
171 #ifndef YY_cl_ucsim_parser_ERROR
172 #define YY_cl_ucsim_parser_ERROR yyerror
175 #ifndef YY_cl_ucsim_parser_PARSE_PARAM
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
186 #ifndef YY_cl_ucsim_parser_PARSE_PARAM
187 #define YY_cl_ucsim_parser_PARSE_PARAM void
194 #ifndef YY_cl_ucsim_parser_PURE
196 extern YY_cl_ucsim_parser_STYPE YY_cl_ucsim_parser_LVAL;
198 #if yylval != YY_cl_ucsim_parser_LVAL
199 extern YY_cl_ucsim_parser_STYPE YY_cl_ucsim_parser_LVAL;
201 #warning "Namespace conflict, disabling some functionality (bison++ only)"
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
218 #define PTOK_AMPERSAND 268
219 #define PTOK_MEMORY_OBJECT 269
220 #define PTOK_MEMORY 270
221 #define PTOK_NUMBER 271
223 #define UNARYMINUS 273
226 #line 169 "/usr/share/bison++/bison.h"
228 /* after #define tokens, before const tokens S5*/
230 #ifndef YY_cl_ucsim_parser_CLASS
231 #define YY_cl_ucsim_parser_CLASS cl_ucsim_parser
234 #ifndef YY_cl_ucsim_parser_INHERIT
235 #define YY_cl_ucsim_parser_INHERIT
238 #ifndef YY_cl_ucsim_parser_MEMBERS
239 #define YY_cl_ucsim_parser_MEMBERS
242 #ifndef YY_cl_ucsim_parser_LEX_BODY
243 #define YY_cl_ucsim_parser_LEX_BODY
246 #ifndef YY_cl_ucsim_parser_ERROR_BODY
247 #define YY_cl_ucsim_parser_ERROR_BODY
250 #ifndef YY_cl_ucsim_parser_CONSTRUCTOR_PARAM
251 #define YY_cl_ucsim_parser_CONSTRUCTOR_PARAM
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 */
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
265 class YY_cl_ucsim_parser_CLASS YY_cl_ucsim_parser_INHERIT
268 #if YY_cl_ucsim_parser_USE_CONST_TOKEN != 0
269 /* static const int token ... */
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;
290 #line 212 "/usr/share/bison++/bison.h"
293 enum YY_cl_ucsim_parser_ENUM_TOKEN { YY_cl_ucsim_parser_NULL_TOKEN=0
295 #line 215 "/usr/share/bison++/bison.h"
302 ,PTOK_RIGHT_PAREN=264
303 ,PTOK_LEFT_BRACKET=265
304 ,PTOK_RIGHT_BRACKET=266
307 ,PTOK_MEMORY_OBJECT=269
314 #line 215 "/usr/share/bison++/bison.h"
316 }; /* end of enum declaration */
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;
325 virtual int YY_cl_ucsim_parser_LEX(YY_cl_ucsim_parser_STYPE *YY_cl_ucsim_parser_LVAL) YY_cl_ucsim_parser_LEX_BODY;
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;
333 int YY_cl_ucsim_parser_NERRS;
334 int YY_cl_ucsim_parser_CHAR;
336 #if YY_cl_ucsim_parser_DEBUG != 0
338 int YY_cl_ucsim_parser_DEBUG_FLAG; /* nonzero means print parse trace */
341 YY_cl_ucsim_parser_CLASS(YY_cl_ucsim_parser_CONSTRUCTOR_PARAM);
343 YY_cl_ucsim_parser_MEMBERS
345 /* other declare folow */
349 #if YY_cl_ucsim_parser_COMPATIBILITY != 0
350 /* backward compatibility */
351 /* Removed due to bison problems
353 / #define YYSTYPE YY_cl_ucsim_parser_STYPE
357 #define YYLTYPE YY_cl_ucsim_parser_LTYPE
360 #ifdef YY_cl_ucsim_parser_DEBUG
361 #define YYDEBUG YY_cl_ucsim_parser_DEBUG
368 #line 267 "/usr/share/bison++/bison.h"