1/* A Bison parser, made by GNU Bison 2.7.12-4996. */
2
3/* Bison interface for Yacc-like parsers in C
4
5 Copyright (C) 1984, 1989-1990, 2000-2013 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_TAB_H_INCLUDED
34# define YY_KJSYY_GRAMMAR_TAB_H_INCLUDED
35/* Enabling traces. */
36#ifndef YYDEBUG
37# define YYDEBUG 0
38#endif
39#if YYDEBUG
40extern 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 PLUSEQUAL = 304,
96 MINUSEQUAL = 305,
97 MULTEQUAL = 306,
98 DIVEQUAL = 307,
99 LSHIFTEQUAL = 308,
100 RSHIFTEQUAL = 309,
101 URSHIFTEQUAL = 310,
102 ANDEQUAL = 311,
103 MODEQUAL = 312,
104 XOREQUAL = 313,
105 OREQUAL = 314,
106 NUMBER = 315,
107 STRING = 316,
108 IDENT = 317,
109 AUTOPLUSPLUS = 318,
110 AUTOMINUSMINUS = 319
111 };
112#endif
113
114
115#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
116typedef union YYSTYPE
117{
118/* Line 2053 of yacc.c */
119#line 64 "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
149/* Line 2053 of yacc.c */
150#line 151 "grammar.tab.h"
151} YYSTYPE;
152# define YYSTYPE_IS_TRIVIAL 1
153# define yystype YYSTYPE /* obsolescent; will be withdrawn */
154# define YYSTYPE_IS_DECLARED 1
155#endif
156
157#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
158typedef struct YYLTYPE
159{
160 int first_line;
161 int first_column;
162 int last_line;
163 int last_column;
164} YYLTYPE;
165# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
166# define YYLTYPE_IS_DECLARED 1
167# define YYLTYPE_IS_TRIVIAL 1
168#endif
169
170extern YYSTYPE kjsyylval;
171extern YYLTYPE kjsyylloc;
172#ifdef YYPARSE_PARAM
173#if defined __STDC__ || defined __cplusplus
174int kjsyyparse (void *YYPARSE_PARAM);
175#else
176int kjsyyparse ();
177#endif
178#else /* ! YYPARSE_PARAM */
179#if defined __STDC__ || defined __cplusplus
180int kjsyyparse (void);
181#else
182int kjsyyparse ();
183#endif
184#endif /* ! YYPARSE_PARAM */
185
186#endif /* !YY_KJSYY_GRAMMAR_TAB_H_INCLUDED */
187