OTWO-1213 Works around lost encoding in Ruby/C binding layer
[ohcount] / test / detect_files / foo.eh
1 /* A Bison parser, made by GNU Bison 2.0.  */
2
3 /* Skeleton parser for Yacc-like parsing with Bison,
4    Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
5
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 2, or (at your option)
9    any later version.
10
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, Inc., 59 Temple Place - Suite 330,
19    Boston, MA 02111-1307, USA.  */
20
21 /* As a special exception, when this file is copied by Bison into a
22    Bison output file, you may use that output file without restriction.
23    This special exception was added by the Free Software Foundation
24    in version 1.24 of Bison.  */
25
26 /* Tokens.  */
27 #ifndef YYTOKENTYPE
28 # define YYTOKENTYPE
29    /* Put the tokens into the symbol table, so that GDB and other debuggers
30       know about them.  */
31    enum yytokentype {
32      IDENTIFIER = 258,
33      CONSTANT = 259,
34      STRING_LITERAL = 260,
35      SIZEOF = 261,
36      PTR_OP = 262,
37      INC_OP = 263,
38      DEC_OP = 264,
39      LEFT_OP = 265,
40      RIGHT_OP = 266,
41      LE_OP = 267,
42      GE_OP = 268,
43      EQ_OP = 269,
44      NE_OP = 270,
45      AND_OP = 271,
46      OR_OP = 272,
47      MUL_ASSIGN = 273,
48      DIV_ASSIGN = 274,
49      MOD_ASSIGN = 275,
50      ADD_ASSIGN = 276,
51      SUB_ASSIGN = 277,
52      LEFT_ASSIGN = 278,
53      RIGHT_ASSIGN = 279,
54      AND_ASSIGN = 280,
55      XOR_ASSIGN = 281,
56      OR_ASSIGN = 282,
57      TYPE_NAME = 283,
58      TYPEDEF = 284,
59      EXTERN = 285,
60      STATIC = 286,
61      AUTO = 287,
62      REGISTER = 288,
63      CHAR = 289,
64      SHORT = 290,
65      INT = 291,
66      UINT = 292,
67      INT64 = 293,
68      LONG = 294,
69      SIGNED = 295,
70      UNSIGNED = 296,
71      FLOAT = 297,
72      DOUBLE = 298,
73      CONST = 299,
74      VOLATILE = 300,
75      VOID = 301,
76      VALIST = 302,
77      STRUCT = 303,
78      UNION = 304,
79      ENUM = 305,
80      ELLIPSIS = 306,
81      CASE = 307,
82      DEFAULT = 308,
83      IF = 309,
84      SWITCH = 310,
85      WHILE = 311,
86      DO = 312,
87      FOR = 313,
88      GOTO = 314,
89      CONTINUE = 315,
90      BREAK = 316,
91      RETURN = 317,
92      IFX = 318,
93      ELSE = 319,
94      CLASS = 320,
95      THISCLASS = 321,
96      CLASS_NAME = 322,
97      PROPERTY = 323,
98      SETPROP = 324,
99      GETPROP = 325,
100      NEWOP = 326,
101      RENEW = 327,
102      DELETE = 328,
103      EXT_DECL = 329,
104      EXT_STORAGE = 330,
105      IMPORT = 331,
106      DEFINE = 332,
107      VIRTUAL = 333,
108      EXT_ATTRIB = 334,
109      PUBLIC = 335,
110      PRIVATE = 336,
111      TYPED_OBJECT = 337,
112      ANY_OBJECT = 338,
113      _INCREF = 339,
114      EXTENSION = 340,
115      ASM = 341,
116      TYPEOF = 342,
117      WATCH = 343,
118      STOPWATCHING = 344,
119      FIREWATCHERS = 345,
120      WATCHABLE = 346,
121      CLASS_DESIGNER = 347,
122      CLASS_NO_EXPANSION = 348,
123      CLASS_FIXED = 349,
124      ISPROPSET = 350,
125      CLASS_DEFAULT_PROPERTY = 351,
126      PROPERTY_CATEGORY = 352,
127      CLASS_DATA = 353,
128      CLASS_PROPERTY = 354,
129      SUBCLASS = 355,
130      NAMESPACE = 356,
131      NEW0OP = 357,
132      RENEW0 = 358,
133      VAARG = 359,
134      DBTABLE = 360,
135      DBFIELD = 361,
136      DBINDEX = 362,
137      DATABASE_OPEN = 363
138    };
139 #endif
140 #define IDENTIFIER 258
141 #define CONSTANT 259
142 #define STRING_LITERAL 260
143 #define SIZEOF 261
144 #define PTR_OP 262
145 #define INC_OP 263
146 #define DEC_OP 264
147 #define LEFT_OP 265
148 #define RIGHT_OP 266
149 #define LE_OP 267
150 #define GE_OP 268
151 #define EQ_OP 269
152 #define NE_OP 270
153 #define AND_OP 271
154 #define OR_OP 272
155 #define MUL_ASSIGN 273
156 #define DIV_ASSIGN 274
157 #define MOD_ASSIGN 275
158 #define ADD_ASSIGN 276
159 #define SUB_ASSIGN 277
160 #define LEFT_ASSIGN 278
161 #define RIGHT_ASSIGN 279
162 #define AND_ASSIGN 280
163 #define XOR_ASSIGN 281
164 #define OR_ASSIGN 282
165 #define TYPE_NAME 283
166 #define TYPEDEF 284
167 #define EXTERN 285
168 #define STATIC 286
169 #define AUTO 287
170 #define REGISTER 288
171 #define CHAR 289
172 #define SHORT 290
173 #define INT 291
174 #define UINT 292
175 #define INT64 293
176 #define LONG 294
177 #define SIGNED 295
178 #define UNSIGNED 296
179 #define FLOAT 297
180 #define DOUBLE 298
181 #define CONST 299
182 #define VOLATILE 300
183 #define VOID 301
184 #define VALIST 302
185 #define STRUCT 303
186 #define UNION 304
187 #define ENUM 305
188 #define ELLIPSIS 306
189 #define CASE 307
190 #define DEFAULT 308
191 #define IF 309
192 #define SWITCH 310
193 #define WHILE 311
194 #define DO 312
195 #define FOR 313
196 #define GOTO 314
197 #define CONTINUE 315
198 #define BREAK 316
199 #define RETURN 317
200 #define IFX 318
201 #define ELSE 319
202 #define CLASS 320
203 #define THISCLASS 321
204 #define CLASS_NAME 322
205 #define PROPERTY 323
206 #define SETPROP 324
207 #define GETPROP 325
208 #define NEWOP 326
209 #define RENEW 327
210 #define DELETE 328
211 #define EXT_DECL 329
212 #define EXT_STORAGE 330
213 #define IMPORT 331
214 #define DEFINE 332
215 #define VIRTUAL 333
216 #define EXT_ATTRIB 334
217 #define PUBLIC 335
218 #define PRIVATE 336
219 #define TYPED_OBJECT 337
220 #define ANY_OBJECT 338
221 #define _INCREF 339
222 #define EXTENSION 340
223 #define ASM 341
224 #define TYPEOF 342
225 #define WATCH 343
226 #define STOPWATCHING 344
227 #define FIREWATCHERS 345
228 #define WATCHABLE 346
229 #define CLASS_DESIGNER 347
230 #define CLASS_NO_EXPANSION 348
231 #define CLASS_FIXED 349
232 #define ISPROPSET 350
233 #define CLASS_DEFAULT_PROPERTY 351
234 #define PROPERTY_CATEGORY 352
235 #define CLASS_DATA 353
236 #define CLASS_PROPERTY 354
237 #define SUBCLASS 355
238 #define NAMESPACE 356
239 #define NEW0OP 357
240 #define RENEW0 358
241 #define VAARG 359
242 #define DBTABLE 360
243 #define DBFIELD 361
244 #define DBINDEX 362
245 #define DATABASE_OPEN 363
246
247
248
249
250 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
251 #line 42 "grammar.y"
252 typedef union YYSTYPE {
253    SpecifierType specifierType;
254    int i;
255    AccessMode declMode;
256    Identifier id;
257    Expression exp;
258    Specifier specifier;
259    OldList * list;
260    Enumerator enumerator;
261    Declarator declarator;
262    Pointer pointer;
263    Initializer initializer;
264    InitDeclarator initDeclarator;
265    TypeName typeName;
266    Declaration declaration;
267    Statement stmt;
268    FunctionDefinition function;
269    External external;
270    Context context;
271    AsmField asmField;
272
273    Instantiation instance;
274    MembersInit membersInit;
275    MemberInit memberInit;
276    ClassFunction classFunction;
277    ClassDefinition _class;
278    ClassDef classDef;
279    PropertyDef prop;
280    char * string;
281    Symbol symbol;
282    PropertyWatch propertyWatch;
283    TemplateParameter templateParameter;
284    TemplateArgument templateArgument;
285    TemplateDatatype templateDatatype;
286    
287    DBTableEntry dbtableEntry;
288    DBIndexItem dbindexItem;
289    DBTableDef dbtableDef;
290 } YYSTYPE;
291 /* Line 1318 of yacc.c.  */
292 #line 293 "grammar.eh"
293 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
294 # define YYSTYPE_IS_DECLARED 1
295 # define YYSTYPE_IS_TRIVIAL 1
296 #endif
297
298 extern YYSTYPE yylval;
299
300 #if ! defined (YYLTYPE) && ! defined (YYLTYPE_IS_DECLARED)
301 typedef struct YYLTYPE
302 {
303   int first_line;
304   int first_column;
305   int last_line;
306   int last_column;
307 } YYLTYPE;
308 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
309 # define YYLTYPE_IS_DECLARED 1
310 # define YYLTYPE_IS_TRIVIAL 1
311 #endif
312
313 extern YYLTYPE yylloc;
314
315