4fbd8390ac724c02da7fecfd0b6e47bc06ef1442
[swftools.git] / lib / as3 / parser.tab.h
1
2 /* A Bison parser, made by GNU Bison 2.4.  */
3
4 /* Skeleton interface for Bison's Yacc-like parsers in C
5    
6       Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
7    Free Software Foundation, Inc.
8    
9    This program is free software: you can redistribute it and/or modify
10    it under the terms of the GNU General Public License as published by
11    the Free Software Foundation, either version 3 of the License, or
12    (at your option) any later version.
13    
14    This program is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17    GNU General Public License for more details.
18    
19    You should have received a copy of the GNU General Public License
20    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
21
22 /* As a special exception, you may create a larger work that contains
23    part or all of the Bison parser skeleton and distribute that work
24    under terms of your choice, so long as that work isn't itself a
25    parser generator using the skeleton or a modified version thereof
26    as a parser skeleton.  Alternatively, if you modify or redistribute
27    the parser skeleton itself, you may (at your option) remove this
28    special exception, which will cause the skeleton and the resulting
29    Bison output files to be licensed under the GNU General Public
30    License without this special exception.
31    
32    This special exception was added by the Free Software Foundation in
33    version 2.2 of Bison.  */
34
35
36 /* Tokens.  */
37 #ifndef YYTOKENTYPE
38 # define YYTOKENTYPE
39    /* Put the tokens into the symbol table, so that GDB and other debuggers
40       know about them.  */
41    enum yytokentype {
42      T_IDENTIFIER = 258,
43      T_NAMESPACE = 259,
44      T_STRING = 260,
45      T_REGEXP = 261,
46      T_EMPTY = 262,
47      T_INT = 263,
48      T_UINT = 264,
49      T_FLOAT = 265,
50      T_FOR = 266,
51      T_WHILE = 267,
52      T_DO = 268,
53      T_SWITCH = 269,
54      KW_IMPLEMENTS = 270,
55      KW_NAMESPACE = 271,
56      KW_PACKAGE = 272,
57      KW_PROTECTED = 273,
58      KW_ARGUMENTS = 274,
59      KW_PUBLIC = 275,
60      KW_PRIVATE = 276,
61      KW_USE = 277,
62      KW_INTERNAL = 278,
63      KW_NEW = 279,
64      KW_NATIVE = 280,
65      KW_FUNCTION = 281,
66      KW_FINALLY = 282,
67      KW_UNDEFINED = 283,
68      KW_NAN = 284,
69      KW_CONTINUE = 285,
70      KW_CLASS = 286,
71      KW_CONST = 287,
72      KW_CATCH = 288,
73      KW_CASE = 289,
74      KW_SET = 290,
75      KW_VOID = 291,
76      KW_THROW = 292,
77      KW_STATIC = 293,
78      KW_WITH = 294,
79      KW_INSTANCEOF = 295,
80      KW_IMPORT = 296,
81      KW_RETURN = 297,
82      KW_TYPEOF = 298,
83      KW_INTERFACE = 299,
84      KW_NULL = 300,
85      KW_VAR = 301,
86      KW_DYNAMIC = 302,
87      KW_OVERRIDE = 303,
88      KW_FINAL = 304,
89      KW_EACH = 305,
90      KW_GET = 306,
91      KW_TRY = 307,
92      KW_SUPER = 308,
93      KW_EXTENDS = 309,
94      KW_FALSE = 310,
95      KW_TRUE = 311,
96      KW_BOOLEAN = 312,
97      KW_UINT = 313,
98      KW_INT = 314,
99      KW_NUMBER = 315,
100      KW_STRING = 316,
101      KW_DEFAULT = 317,
102      KW_DEFAULT_XML = 318,
103      KW_DELETE = 319,
104      KW_IF = 320,
105      KW_ELSE = 321,
106      KW_BREAK = 322,
107      KW_IS = 323,
108      KW_IN = 324,
109      KW_AS = 325,
110      T_DICTSTART = 326,
111      T_EQEQ = 327,
112      T_EQEQEQ = 328,
113      T_NE = 329,
114      T_NEE = 330,
115      T_LE = 331,
116      T_GE = 332,
117      T_ORBY = 333,
118      T_DIVBY = 334,
119      T_MODBY = 335,
120      T_MULBY = 336,
121      T_ANDBY = 337,
122      T_PLUSBY = 338,
123      T_MINUSBY = 339,
124      T_XORBY = 340,
125      T_SHRBY = 341,
126      T_SHLBY = 342,
127      T_USHRBY = 343,
128      T_OROR = 344,
129      T_ANDAND = 345,
130      T_COLONCOLON = 346,
131      T_MINUSMINUS = 347,
132      T_PLUSPLUS = 348,
133      T_DOTDOT = 349,
134      T_DOTDOTDOT = 350,
135      T_SHL = 351,
136      T_USHR = 352,
137      T_SHR = 353,
138      prec_none = 354,
139      below_semicolon = 355,
140      below_assignment = 356,
141      below_lt = 357,
142      below_minus = 358,
143      minusminus_prefix = 359,
144      plusplus_prefix = 360,
145      below_curly = 361,
146      new2 = 362,
147      above_identifier = 363,
148      below_else = 364,
149      above_function = 365
150    };
151 #endif
152
153
154
155 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
156 typedef union 
157 /* Line 1685 of skeleton.m4  */
158 #line 47 "parser.y"
159 tokenunion
160 {
161
162 /* Line 1685 of skeleton.m4  */
163 #line 47 "parser.y"
164
165     enum yytokentype token;
166
167     classinfo_t*classinfo;
168     classinfo_list_t*classinfo_list;
169     slotinfo_t*slotinfo;
170     slotinfo_list_t*slotinfo_list;
171
172     int number_int;
173     unsigned int number_uint;
174     double number_float;
175     code_t*code;
176     typedcode_t value;
177     //typedcode_list_t*value_list;
178     codeandnumber_t value_list;
179     param_t* param;
180     params_t params;
181     string_t str;
182     char*id;
183     constant_t*constant;
184     for_start_t for_start;
185     abc_exception_t *exception;
186     regexp_t regexp;
187     modifiers_t flags;
188     namespace_decl_t* namespace_decl;
189     node_t*node;
190     struct {
191         abc_exception_list_t *l;
192         code_t*finally;
193     } catch_list;
194
195
196
197 /* Line 1685 of skeleton.m4  */
198 #line 199 "parser.tab.h"
199 } YYSTYPE;
200 # define YYSTYPE_IS_TRIVIAL 1
201 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
202 # define YYSTYPE_IS_DECLARED 1
203 #endif
204
205 extern YYSTYPE a3_lval;
206
207