1 /* A Bison parser, made by GNU Bison 2.7.  */
2 
3 /* Bison interface for Yacc-like parsers in C
4 
5       Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
6 
7    This program is free software: you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation, either version 3 of the License, or
10    (at your option) any later version.
11 
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16 
17    You should have received a copy of the GNU General Public License
18    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
19 
20 /* As a special exception, you may create a larger work that contains
21    part or all of the Bison parser skeleton and distribute that work
22    under terms of your choice, so long as that work isn't itself a
23    parser generator using the skeleton or a modified version thereof
24    as a parser skeleton.  Alternatively, if you modify or redistribute
25    the parser skeleton itself, you may (at your option) remove this
26    special exception, which will cause the skeleton and the resulting
27    Bison output files to be licensed under the GNU General Public
28    License without this special exception.
29 
30    This special exception was added by the Free Software Foundation in
31    version 2.2 of Bison.  */
32 
33 #ifndef YY_KJSYY_GRAMMAR_H_INCLUDED
34 # define YY_KJSYY_GRAMMAR_H_INCLUDED
35 /* Enabling traces.  */
36 #ifndef YYDEBUG
37 # define YYDEBUG 0
38 #endif
39 #if YYDEBUG
40 extern int kjsyydebug;
41 #endif
42 
43 /* Tokens.  */
44 #ifndef YYTOKENTYPE
45 # define YYTOKENTYPE
46 /* Put the tokens into the symbol table, so that GDB and other debuggers
47    know about them.  */
48 enum yytokentype {
49     NULLTOKEN = 258,
50     TRUETOKEN = 259,
51     FALSETOKEN = 260,
52     BREAK = 261,
53     CASE = 262,
54     DEFAULT = 263,
55     FOR = 264,
56     NEW = 265,
57     VAR = 266,
58     CONSTTOKEN = 267,
59     CONTINUE = 268,
60     FUNCTION = 269,
61     RETURN = 270,
62     VOIDTOKEN = 271,
63     DELETETOKEN = 272,
64     IF = 273,
65     THISTOKEN = 274,
66     DO = 275,
67     WHILE = 276,
68     INTOKEN = 277,
69     INSTANCEOF = 278,
70     TYPEOF = 279,
71     SWITCH = 280,
72     WITH = 281,
73     RESERVED = 282,
74     THROW = 283,
75     TRY = 284,
76     CATCH = 285,
77     FINALLY = 286,
78     DEBUGGER = 287,
79     IMPORT = 288,
80     IF_WITHOUT_ELSE = 289,
81     ELSE = 290,
82     EQEQ = 291,
83     NE = 292,
84     STREQ = 293,
85     STRNEQ = 294,
86     LE = 295,
87     GE = 296,
88     OR = 297,
89     AND = 298,
90     PLUSPLUS = 299,
91     MINUSMINUS = 300,
92     LSHIFT = 301,
93     RSHIFT = 302,
94     URSHIFT = 303,
95     T_EXP = 304,
96     PLUSEQUAL = 305,
97     MINUSEQUAL = 306,
98     MULTEQUAL = 307,
99     DIVEQUAL = 308,
100     EXPEQUAL = 309,
101     LSHIFTEQUAL = 310,
102     RSHIFTEQUAL = 311,
103     URSHIFTEQUAL = 312,
104     ANDEQUAL = 313,
105     MODEQUAL = 314,
106     XOREQUAL = 315,
107     OREQUAL = 316,
108     NUMBER = 317,
109     STRING = 318,
110     IDENT = 319,
111     AUTOPLUSPLUS = 320,
112     AUTOMINUSMINUS = 321
113 };
114 #endif
115 
116 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
117 typedef union YYSTYPE {
118     /* Line 2058 of yacc.c  */
119 #line 63 "grammar.y"
120 
121     int                 ival;
122     double              dval;
123     UString             *ustr;
124     Identifier          *ident;
125     Node                *node;
126     StatementNode       *stat;
127     ParameterNode       *param;
128     FunctionBodyNode    *body;
129     FuncDeclNode        *func;
130     FuncExprNode        *funcExpr;
131     ProgramNode         *prog;
132     AssignExprNode      *init;
133     SourceElementsNode  *srcs;
134     ArgumentsNode       *args;
135     ArgumentListNode    *alist;
136     VarDeclNode         *decl;
137     VarDeclListNode     *vlist;
138     CaseBlockNode       *cblk;
139     ClauseListNode      *clist;
140     CaseClauseNode      *ccl;
141     ElementNode         *elm;
142     Operator            op;
143     PropertyListNode   *plist;
144     PropertyNode       *pnode;
145     PropertyNameNode   *pname;
146     PackageNameNode     *pkgn;
147 
148     /* Line 2058 of yacc.c  */
149 #line 153 "grammar.h"
150 } YYSTYPE;
151 # define YYSTYPE_IS_TRIVIAL 1
152 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
153 # define YYSTYPE_IS_DECLARED 1
154 #endif
155 
156 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
157 typedef struct YYLTYPE {
158     int first_line;
159     int first_column;
160     int last_line;
161     int last_column;
162 } YYLTYPE;
163 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
164 # define YYLTYPE_IS_DECLARED 1
165 # define YYLTYPE_IS_TRIVIAL 1
166 #endif
167 
168 extern YYSTYPE kjsyylval;
169 extern YYLTYPE kjsyylloc;
170 #ifdef YYPARSE_PARAM
171 #if defined __STDC__ || defined __cplusplus
172 int kjsyyparse(void *YYPARSE_PARAM);
173 #else
174 int kjsyyparse();
175 #endif
176 #else /* ! YYPARSE_PARAM */
177 #if defined __STDC__ || defined __cplusplus
178 int kjsyyparse(void);
179 #else
180 int kjsyyparse();
181 #endif
182 #endif /* ! YYPARSE_PARAM */
183 
184 #endif /* !YY_KJSYY_GRAMMAR_H_INCLUDED  */
185