b3229c9fc7e4b9574d6e879b1c8dce51c4a1c3ab
[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      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      ALIGNOF = 364,
148      ATTRIB_DEP = 365,
149      __ATTRIB = 366,
150      BOOL = 367,
151      _BOOL = 368,
152      _COMPLEX = 369,
153      _IMAGINARY = 370,
154      RESTRICT = 371,
155      THREAD = 372,
156      WIDE_STRING_LITERAL = 373
157    };
158 #endif
159
160
161
162 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
163 typedef union YYSTYPE
164 {
165
166 /* Line 1685 of yacc.c  */
167 #line 38 "grammar.y"
168
169    SpecifierType specifierType;
170    int i;
171    AccessMode declMode;
172    Identifier id;
173    Expression exp;
174    Specifier specifier;
175    OldList * list;
176    Enumerator enumerator;
177    Declarator declarator;
178    Pointer pointer;
179    Initializer initializer;
180    InitDeclarator initDeclarator;
181    TypeName typeName;
182    Declaration declaration;
183    Statement stmt;
184    FunctionDefinition function;
185    External external;
186    Context context;
187    AsmField asmField;
188    Attrib attrib;
189    ExtDecl extDecl;
190    Attribute attribute;
191
192    Instantiation instance;
193    MembersInit membersInit;
194    MemberInit memberInit;
195    ClassFunction classFunction;
196    ClassDefinition _class;
197    ClassDef classDef;
198    PropertyDef prop;
199    char * string;
200    Symbol symbol;
201    PropertyWatch propertyWatch;
202    TemplateParameter templateParameter;
203    TemplateArgument templateArgument;
204    TemplateDatatype templateDatatype;
205
206    DBTableEntry dbtableEntry;
207    DBIndexItem dbindexItem;
208    DBTableDef dbtableDef;
209
210
211
212 /* Line 1685 of yacc.c  */
213 #line 214 "grammar.h"
214 } YYSTYPE;
215 # define YYSTYPE_IS_TRIVIAL 1
216 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
217 # define YYSTYPE_IS_DECLARED 1
218 #endif
219
220 extern YYSTYPE yylval;
221
222 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
223 typedef struct YYLTYPE
224 {
225   int first_line;
226   int first_column;
227   int last_line;
228   int last_column;
229 } YYLTYPE;
230 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
231 # define YYLTYPE_IS_DECLARED 1
232 # define YYLTYPE_IS_TRIVIAL 1
233 #endif
234
235 extern YYLTYPE yylloc;
236