Kannel: Open Source WAP and SMS gateway  svn-r5335
wsgram.h
Go to the documentation of this file.
1 /* A Bison parser, made by GNU Bison 3.0.5. */
2 
3 /* Bison interface for Yacc-like parsers in C
4 
5  Copyright (C) 1984, 1989-1990, 2000-2015, 2018 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_WS_YY_Y_TAB_H_INCLUDED
34 # define YY_WS_YY_Y_TAB_H_INCLUDED
35 /* Debug traces. */
36 #ifndef YYDEBUG
37 # define YYDEBUG 0
38 #endif
39 #if YYDEBUG
40 extern int ws_yy_debug;
41 #endif
42 
43 /* Token type. */
44 #ifndef YYTOKENTYPE
45 # define YYTOKENTYPE
47  {
48  tINVALID = 258,
49  tTRUE = 259,
50  tFALSE = 260,
51  tINTEGER = 261,
52  tFLOAT = 262,
53  tSTRING = 263,
54  tIDENTIFIER = 264,
55  tACCESS = 265,
56  tAGENT = 266,
57  tBREAK = 267,
58  tCONTINUE = 268,
59  tIDIV = 269,
60  tIDIVA = 270,
61  tDOMAIN = 271,
62  tELSE = 272,
63  tEQUIV = 273,
64  tEXTERN = 274,
65  tFOR = 275,
66  tFUNCTION = 276,
67  tHEADER = 277,
68  tHTTP = 278,
69  tIF = 279,
70  tISVALID = 280,
71  tMETA = 281,
72  tNAME = 282,
73  tPATH = 283,
74  tRETURN = 284,
75  tTYPEOF = 285,
76  tUSE = 286,
77  tUSER = 287,
78  tVAR = 288,
79  tWHILE = 289,
80  tURL = 290,
81  tDELETE = 291,
82  tIN = 292,
83  tLIB = 293,
84  tNEW = 294,
85  tNULL = 295,
86  tTHIS = 296,
87  tVOID = 297,
88  tWITH = 298,
89  tCASE = 299,
90  tCATCH = 300,
91  tCLASS = 301,
92  tCONST = 302,
93  tDEBUGGER = 303,
94  tDEFAULT = 304,
95  tDO = 305,
96  tENUM = 306,
97  tEXPORT = 307,
98  tEXTENDS = 308,
99  tFINALLY = 309,
100  tIMPORT = 310,
101  tPRIVATE = 311,
102  tPUBLIC = 312,
103  tSIZEOF = 313,
104  tSTRUCT = 314,
105  tSUPER = 315,
106  tSWITCH = 316,
107  tTHROW = 317,
108  tTRY = 318,
109  tEQ = 319,
110  tLE = 320,
111  tGE = 321,
112  tNE = 322,
113  tAND = 323,
114  tOR = 324,
115  tPLUSPLUS = 325,
116  tMINUSMINUS = 326,
117  tLSHIFT = 327,
118  tRSSHIFT = 328,
119  tRSZSHIFT = 329,
120  tADDA = 330,
121  tSUBA = 331,
122  tMULA = 332,
123  tDIVA = 333,
124  tANDA = 334,
125  tORA = 335,
126  tXORA = 336,
127  tREMA = 337,
128  tLSHIFTA = 338,
129  tRSSHIFTA = 339,
131  };
132 #endif
133 /* Tokens. */
134 #define tINVALID 258
135 #define tTRUE 259
136 #define tFALSE 260
137 #define tINTEGER 261
138 #define tFLOAT 262
139 #define tSTRING 263
140 #define tIDENTIFIER 264
141 #define tACCESS 265
142 #define tAGENT 266
143 #define tBREAK 267
144 #define tCONTINUE 268
145 #define tIDIV 269
146 #define tIDIVA 270
147 #define tDOMAIN 271
148 #define tELSE 272
149 #define tEQUIV 273
150 #define tEXTERN 274
151 #define tFOR 275
152 #define tFUNCTION 276
153 #define tHEADER 277
154 #define tHTTP 278
155 #define tIF 279
156 #define tISVALID 280
157 #define tMETA 281
158 #define tNAME 282
159 #define tPATH 283
160 #define tRETURN 284
161 #define tTYPEOF 285
162 #define tUSE 286
163 #define tUSER 287
164 #define tVAR 288
165 #define tWHILE 289
166 #define tURL 290
167 #define tDELETE 291
168 #define tIN 292
169 #define tLIB 293
170 #define tNEW 294
171 #define tNULL 295
172 #define tTHIS 296
173 #define tVOID 297
174 #define tWITH 298
175 #define tCASE 299
176 #define tCATCH 300
177 #define tCLASS 301
178 #define tCONST 302
179 #define tDEBUGGER 303
180 #define tDEFAULT 304
181 #define tDO 305
182 #define tENUM 306
183 #define tEXPORT 307
184 #define tEXTENDS 308
185 #define tFINALLY 309
186 #define tIMPORT 310
187 #define tPRIVATE 311
188 #define tPUBLIC 312
189 #define tSIZEOF 313
190 #define tSTRUCT 314
191 #define tSUPER 315
192 #define tSWITCH 316
193 #define tTHROW 317
194 #define tTRY 318
195 #define tEQ 319
196 #define tLE 320
197 #define tGE 321
198 #define tNE 322
199 #define tAND 323
200 #define tOR 324
201 #define tPLUSPLUS 325
202 #define tMINUSMINUS 326
203 #define tLSHIFT 327
204 #define tRSSHIFT 328
205 #define tRSZSHIFT 329
206 #define tADDA 330
207 #define tSUBA 331
208 #define tMULA 332
209 #define tDIVA 333
210 #define tANDA 334
211 #define tORA 335
212 #define tXORA 336
213 #define tREMA 337
214 #define tLSHIFTA 338
215 #define tRSSHIFTA 339
216 #define tRSZSHIFTA 340
217 
218 /* Value type. */
219 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
220 
221 union YYSTYPE
222 {
223 #line 22 "wmlscript/wsgram.y" /* yacc.c:1910 */
224 
226  WsFloat vfloat;
227  char *identifier;
229 
230  WsBool boolean;
231  WsList *list;
233  WsVarDec *vardec;
234 
236 
237  WsStatement *stmt;
239 
240 #line 241 "y.tab.h" /* yacc.c:1910 */
241 };
242 
243 typedef union YYSTYPE YYSTYPE;
244 # define YYSTYPE_IS_TRIVIAL 1
245 # define YYSTYPE_IS_DECLARED 1
246 #endif
247 
248 /* Location type. */
249 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
250 typedef struct YYLTYPE YYLTYPE;
251 struct YYLTYPE
252 {
253  int first_line;
254  int first_column;
255  int last_line;
256  int last_column;
257 };
258 # define YYLTYPE_IS_DECLARED 1
259 # define YYLTYPE_IS_TRIVIAL 1
260 #endif
261 
262 
263 
264 int ws_yy_parse (WsCompiler* compiler);
265 
266 #endif /* !YY_WS_YY_Y_TAB_H_INCLUDED */
#define tRETURN
Definition: wsgram.h:160
WsFormalParm * parm
Definition: wsgram.c:308
WsUtf8String * string
Definition: wsgram.c:304
int first_column
Definition: wsgram.c:330
#define tCONST
Definition: wsgram.h:178
#define tWHILE
Definition: wsgram.h:165
#define tNEW
Definition: wsgram.h:170
#define tPATH
Definition: wsgram.h:159
#define tEXPORT
Definition: wsgram.h:183
#define tWITH
Definition: wsgram.h:174
#define tTRUE
Definition: wsgram.h:135
unsigned long WsUInt32
Definition: wsint.h:122
#define tREMA
Definition: wsgram.h:213
WsVarDec * vardec
Definition: wsgram.c:309
#define tEQ
Definition: wsgram.h:195
#define tOR
Definition: wsgram.h:200
#define tSUBA
Definition: wsgram.h:207
double WsFloat
Definition: wsint.h:126
#define tFINALLY
Definition: wsgram.h:185
#define tIDENTIFIER
Definition: wsgram.h:140
int last_column
Definition: wsgram.c:332
int last_line
Definition: wsgram.c:331
#define tVOID
Definition: wsgram.h:173
#define tFLOAT
Definition: wsgram.h:138
#define tLE
Definition: wsgram.h:196
#define tEXTERN
Definition: wsgram.h:150
#define tADDA
Definition: wsgram.h:206
#define tNULL
Definition: wsgram.h:171
int ws_yy_parse(WsCompiler *compiler)
#define tEXTENDS
Definition: wsgram.h:184
#define tPLUSPLUS
Definition: wsgram.h:201
#define tCLASS
Definition: wsgram.h:177
#define tDEFAULT
Definition: wsgram.h:180
#define tORA
Definition: wsgram.h:211
#define tINVALID
Definition: wsgram.h:134
#define tHEADER
Definition: wsgram.h:153
#define tCONTINUE
Definition: wsgram.h:144
yytokentype
Definition: wsgram.c:122
#define tSUPER
Definition: wsgram.h:191
#define tCASE
Definition: wsgram.h:175
#define tDELETE
Definition: wsgram.h:167
WsStatement * stmt
Definition: wsgram.c:313
#define tENUM
Definition: wsgram.h:182
#define tMINUSMINUS
Definition: wsgram.h:202
WsUInt32 integer
Definition: wsgram.c:301
#define tANDA
Definition: wsgram.h:210
WsExpression * expr
Definition: wsgram.c:314
#define tFOR
Definition: wsgram.h:151
#define tUSER
Definition: wsgram.h:163
#define tXORA
Definition: wsgram.h:212
int first_line
Definition: wsgram.c:329
#define tHTTP
Definition: wsgram.h:154
#define tSTRUCT
Definition: wsgram.h:190
#define tLIB
Definition: wsgram.h:169
#define tSTRING
Definition: wsgram.h:139
#define tPUBLIC
Definition: wsgram.h:188
#define tLSHIFTA
Definition: wsgram.h:214
#define tDO
Definition: wsgram.h:181
#define tIDIV
Definition: wsgram.h:145
#define tVAR
Definition: wsgram.h:164
#define tRSZSHIFT
Definition: wsgram.h:205
#define tCATCH
Definition: wsgram.h:176
#define tIMPORT
Definition: wsgram.h:186
#define tNAME
Definition: wsgram.h:158
#define tMETA
Definition: wsgram.h:157
WsList * list
Definition: wsgram.c:307
#define tDEBUGGER
Definition: wsgram.h:179
#define tISVALID
Definition: wsgram.h:156
WsBool
Definition: wsint.h:128
#define tDIVA
Definition: wsgram.h:209
#define tRSSHIFT
Definition: wsgram.h:204
#define tIN
Definition: wsgram.h:168
WsFloat vfloat
Definition: wsgram.c:302
#define tTHIS
Definition: wsgram.h:172
#define tPRIVATE
Definition: wsgram.h:187
#define tEQUIV
Definition: wsgram.h:149
#define tBREAK
Definition: wsgram.h:143
#define tAGENT
Definition: wsgram.h:142
char * identifier
Definition: wsgram.c:303
#define tAND
Definition: wsgram.h:199
#define tMULA
Definition: wsgram.h:208
#define tTHROW
Definition: wsgram.h:193
#define tELSE
Definition: wsgram.h:148
#define tSWITCH
Definition: wsgram.h:192
#define tIDIVA
Definition: wsgram.h:146
#define tIF
Definition: wsgram.h:155
WsPragmaMetaBody * meta_body
Definition: wsgram.c:311
WsBool boolean
Definition: wsgram.c:306
#define tFALSE
Definition: wsgram.h:136
#define tTYPEOF
Definition: wsgram.h:161
#define tDOMAIN
Definition: wsgram.h:147
#define tRSSHIFTA
Definition: wsgram.h:215
#define tTRY
Definition: wsgram.h:194
#define tRSZSHIFTA
Definition: wsgram.h:216
#define tUSE
Definition: wsgram.h:162
#define tURL
Definition: wsgram.h:166
#define tSIZEOF
Definition: wsgram.h:189
#define tFUNCTION
Definition: wsgram.h:152
#define tINTEGER
Definition: wsgram.h:137
#define tGE
Definition: wsgram.h:197
#define tACCESS
Definition: wsgram.h:141
#define tNE
Definition: wsgram.h:198
#define tLSHIFT
Definition: wsgram.h:203
See file LICENSE for details about the license agreement for using, modifying, copying or deriving work from this software.