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