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