Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
kjs
kjs
kjs
grammar.h
1
/* A Bison parser, made by GNU Bison 2.1. */
2
3
/* Skeleton parser for Yacc-like parsing with Bison,
4
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2, or (at your option)
9
any later version.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin Street, Fifth Floor,
19
Boston, MA 02110-1301, USA. */
20
21
/* As a special exception, when this file is copied by Bison into a
22
Bison output file, you may use that output file without restriction.
23
This special exception was added by the Free Software Foundation
24
in version 1.24 of Bison. */
25
26
/* Tokens. */
27
#ifndef YYTOKENTYPE
28
# define YYTOKENTYPE
29
/* Put the tokens into the symbol table, so that GDB and other debuggers
30
know about them. */
31
enum
yytokentype {
32
NULLTOKEN = 258,
33
TRUETOKEN = 259,
34
FALSETOKEN = 260,
35
STRING = 261,
36
NUMBER = 262,
37
BREAK = 263,
38
CASE = 264,
39
DEFAULT = 265,
40
FOR = 266,
41
NEW = 267,
42
VAR = 268,
43
CONST = 269,
44
CONTINUE = 270,
45
FUNCTION = 271,
46
RETURN = 272,
47
VOID = 273,
48
DELETE = 274,
49
IF = 275,
50
THIS = 276,
51
DO = 277,
52
WHILE = 278,
53
ELSE = 279,
54
IN = 280,
55
INSTANCEOF = 281,
56
TYPEOF = 282,
57
SWITCH = 283,
58
WITH = 284,
59
RESERVED = 285,
60
THROW = 286,
61
TRY = 287,
62
CATCH = 288,
63
FINALLY = 289,
64
DEBUGGER = 290,
65
EQEQ = 291,
66
NE = 292,
67
STREQ = 293,
68
STRNEQ = 294,
69
LE = 295,
70
GE = 296,
71
OR = 297,
72
AND = 298,
73
PLUSPLUS = 299,
74
MINUSMINUS = 300,
75
LSHIFT = 301,
76
RSHIFT = 302,
77
URSHIFT = 303,
78
PLUSEQUAL = 304,
79
MINUSEQUAL = 305,
80
MULTEQUAL = 306,
81
DIVEQUAL = 307,
82
LSHIFTEQUAL = 308,
83
RSHIFTEQUAL = 309,
84
URSHIFTEQUAL = 310,
85
ANDEQUAL = 311,
86
MODEQUAL = 312,
87
XOREQUAL = 313,
88
OREQUAL = 314,
89
IDENT = 315,
90
FUNCEXPRIDENT = 316,
91
AUTOPLUSPLUS = 317,
92
AUTOMINUSMINUS = 318
93
};
94
#endif
95
/* Tokens. */
96
#define NULLTOKEN 258
97
#define TRUETOKEN 259
98
#define FALSETOKEN 260
99
#define STRING 261
100
#define NUMBER 262
101
#define BREAK 263
102
#define CASE 264
103
#define DEFAULT 265
104
#define FOR 266
105
#define NEW 267
106
#define VAR 268
107
#define CONST 269
108
#define CONTINUE 270
109
#define FUNCTION 271
110
#define RETURN 272
111
#define VOID 273
112
#define DELETE 274
113
#define IF 275
114
#define THIS 276
115
#define DO 277
116
#define WHILE 278
117
#define ELSE 279
118
#define IN 280
119
#define INSTANCEOF 281
120
#define TYPEOF 282
121
#define SWITCH 283
122
#define WITH 284
123
#define RESERVED 285
124
#define THROW 286
125
#define TRY 287
126
#define CATCH 288
127
#define FINALLY 289
128
#define DEBUGGER 290
129
#define EQEQ 291
130
#define NE 292
131
#define STREQ 293
132
#define STRNEQ 294
133
#define LE 295
134
#define GE 296
135
#define OR 297
136
#define AND 298
137
#define PLUSPLUS 299
138
#define MINUSMINUS 300
139
#define LSHIFT 301
140
#define RSHIFT 302
141
#define URSHIFT 303
142
#define PLUSEQUAL 304
143
#define MINUSEQUAL 305
144
#define MULTEQUAL 306
145
#define DIVEQUAL 307
146
#define LSHIFTEQUAL 308
147
#define RSHIFTEQUAL 309
148
#define URSHIFTEQUAL 310
149
#define ANDEQUAL 311
150
#define MODEQUAL 312
151
#define XOREQUAL 313
152
#define OREQUAL 314
153
#define IDENT 315
154
#define FUNCEXPRIDENT 316
155
#define AUTOPLUSPLUS 317
156
#define AUTOMINUSMINUS 318
157
158
159
160
161
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
162
#line 52 "grammar.y"
163
typedef
union
YYSTYPE {
164
int
ival;
165
double
dval;
166
UString *ustr;
167
Identifier *ident;
168
Node *node;
169
StatementNode *stat;
170
ParameterNode *param;
171
FunctionBodyNode *body;
172
FuncDeclNode *func;
173
FunctionBodyNode *prog;
174
AssignExprNode *init;
175
SourceElementsNode *srcs;
176
StatListNode *slist;
177
ArgumentsNode *args;
178
ArgumentListNode *alist;
179
VarDeclNode *decl;
180
VarDeclListNode *vlist;
181
CaseBlockNode *cblk;
182
ClauseListNode *clist;
183
CaseClauseNode *ccl;
184
ElementNode *elm;
185
Operator op;
186
PropertyValueNode *plist;
187
PropertyNode *pnode;
188
CatchNode *cnode;
189
FinallyNode *fnode;
190
} YYSTYPE;
191
/* Line 1447 of yacc.c. */
192
#line 193 "grammar.tab.h"
193
# define yystype YYSTYPE
/* obsolescent; will be withdrawn */
194
# define YYSTYPE_IS_DECLARED 1
195
# define YYSTYPE_IS_TRIVIAL 1
196
#endif
197
198
extern
YYSTYPE kjsyylval;
199
200
#if ! defined (YYLTYPE) && ! defined (YYLTYPE_IS_DECLARED)
201
typedef
struct
YYLTYPE
202
{
203
int
first_line;
204
int
first_column;
205
int
last_line;
206
int
last_column;
207
} YYLTYPE;
208
# define yyltype YYLTYPE
/* obsolescent; will be withdrawn */
209
# define YYLTYPE_IS_DECLARED 1
210
# define YYLTYPE_IS_TRIVIAL 1
211
#endif
212
213
extern
YYLTYPE kjsyylloc;
214
215
kjs
Skip menu "kjs"
Main Page
Class Hierarchy
Alphabetical List
Class List
File List
Class Members
Related Pages
kjs
Skip menu "kjs"
arts
dcop
dnssd
interfaces
kspeech
interface
library
tdetexteditor
kate
kded
kdoctools
kimgio
kjs
libtdemid
libtdescreensaver
tdeabc
tdecmshell
tdecore
tdefx
tdehtml
tdeinit
tdeio
bookmarks
httpfilter
kpasswdserver
kssl
tdefile
tdeio
tdeioexec
tdeioslave
http
tdemdi
tdemdi
tdenewstuff
tdeparts
tdeprint
tderandr
tderesources
tdespell2
tdesu
tdeui
tdeunittest
tdeutils
tdewallet