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