input_parser.h
7.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
/* A Bison parser, made by GNU Bison 2.5. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* Tokens. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {
T_NUMBER = 258,
T_SYMBOL = 259,
T_LITERAL = 260,
T_DIGITS = 261,
T_STRING = 262,
T_END_INPUT = 263,
T_EXPRESSION = 264,
T_UNARY_OP = 265,
T_OF = 266,
T_NOT = 267,
T_TYPE_ID = 268,
T_VIRGULE = 269,
T_AFFECT = 270,
T_MAPSTO = 271,
T_BEGIN_PAR = 272,
T_END_PAR = 273,
T_PLUS = 274,
T_MOINS = 275,
T_FOIS = 276,
T_DIV = 277,
T_MOD = 278,
T_POW = 279,
T_QUOTED_BINARY = 280,
T_QUOTE = 281,
T_PRIME = 282,
T_TEST_EQUAL = 283,
T_EQUAL = 284,
T_INTERVAL = 285,
T_UNION = 286,
T_INTERSECT = 287,
T_MINUS = 288,
T_AND_OP = 289,
T_COMPOSE = 290,
T_DOLLAR = 291,
T_DOLLAR_MAPLE = 292,
T_INDEX_BEGIN = 293,
T_VECT_BEGIN = 294,
T_VECT_DISPATCH = 295,
T_VECT_END = 296,
T_SET_BEGIN = 297,
T_SET_END = 298,
T_SEMI = 299,
T_DEUXPOINTS = 300,
T_DOUBLE_DEUX_POINTS = 301,
T_IF = 302,
T_RPN_IF = 303,
T_ELIF = 304,
T_THEN = 305,
T_ELSE = 306,
T_IFTE = 307,
T_SWITCH = 308,
T_CASE = 309,
T_DEFAULT = 310,
T_ENDCASE = 311,
T_FOR = 312,
T_FROM = 313,
T_TO = 314,
T_DO = 315,
T_BY = 316,
T_WHILE = 317,
T_MUPMAP_WHILE = 318,
T_RPN_WHILE = 319,
T_REPEAT = 320,
T_UNTIL = 321,
T_IN = 322,
T_START = 323,
T_BREAK = 324,
T_CONTINUE = 325,
T_TRY = 326,
T_CATCH = 327,
T_TRY_CATCH = 328,
T_PROC = 329,
T_BLOC = 330,
T_BLOC_BEGIN = 331,
T_BLOC_END = 332,
T_RETURN = 333,
T_LOCAL = 334,
T_LOCALBLOC = 335,
T_NAME = 336,
T_PROGRAM = 337,
T_NULL = 338,
T_ARGS = 339,
T_FACTORIAL = 340,
T_RPN_OP = 341,
T_RPN_BEGIN = 342,
T_RPN_END = 343,
T_STACK = 344,
T_GROUPE_BEGIN = 345,
T_GROUPE_END = 346,
T_LINE_BEGIN = 347,
T_LINE_END = 348,
T_VECTOR_BEGIN = 349,
T_VECTOR_END = 350,
T_CURVE_BEGIN = 351,
T_CURVE_END = 352,
T_ROOTOF_BEGIN = 353,
T_ROOTOF_END = 354,
T_SPOLY1_BEGIN = 355,
T_SPOLY1_END = 356,
T_POLY1_BEGIN = 357,
T_POLY1_END = 358,
T_MATRICE_BEGIN = 359,
T_MATRICE_END = 360,
T_ASSUME_BEGIN = 361,
T_ASSUME_END = 362,
T_HELP = 363,
TI_DEUXPOINTS = 364,
TI_LOCAL = 365,
TI_LOOP = 366,
TI_FOR = 367,
TI_WHILE = 368,
TI_STO = 369,
TI_TRY = 370,
TI_DIALOG = 371,
T_PIPE = 372,
TI_DEFINE = 373,
TI_PRGM = 374,
TI_SEMI = 375,
TI_HASH = 376,
T_ACCENTGRAVE = 377,
T_MAPLELIB = 378,
T_INTERROGATION = 379,
T_UNIT = 380,
T_BIDON = 381,
T_LOGO = 382,
T_SQ = 383,
T_CASE38 = 384,
T_IFERR = 385,
T_MOINS38 = 386,
T_NEG38 = 387,
T_UNARY_OP_38 = 388,
T_FUNCTION = 389,
T_IMPMULT = 390
};
#endif
/* Tokens. */
#define T_NUMBER 258
#define T_SYMBOL 259
#define T_LITERAL 260
#define T_DIGITS 261
#define T_STRING 262
#define T_END_INPUT 263
#define T_EXPRESSION 264
#define T_UNARY_OP 265
#define T_OF 266
#define T_NOT 267
#define T_TYPE_ID 268
#define T_VIRGULE 269
#define T_AFFECT 270
#define T_MAPSTO 271
#define T_BEGIN_PAR 272
#define T_END_PAR 273
#define T_PLUS 274
#define T_MOINS 275
#define T_FOIS 276
#define T_DIV 277
#define T_MOD 278
#define T_POW 279
#define T_QUOTED_BINARY 280
#define T_QUOTE 281
#define T_PRIME 282
#define T_TEST_EQUAL 283
#define T_EQUAL 284
#define T_INTERVAL 285
#define T_UNION 286
#define T_INTERSECT 287
#define T_MINUS 288
#define T_AND_OP 289
#define T_COMPOSE 290
#define T_DOLLAR 291
#define T_DOLLAR_MAPLE 292
#define T_INDEX_BEGIN 293
#define T_VECT_BEGIN 294
#define T_VECT_DISPATCH 295
#define T_VECT_END 296
#define T_SET_BEGIN 297
#define T_SET_END 298
#define T_SEMI 299
#define T_DEUXPOINTS 300
#define T_DOUBLE_DEUX_POINTS 301
#define T_IF 302
#define T_RPN_IF 303
#define T_ELIF 304
#define T_THEN 305
#define T_ELSE 306
#define T_IFTE 307
#define T_SWITCH 308
#define T_CASE 309
#define T_DEFAULT 310
#define T_ENDCASE 311
#define T_FOR 312
#define T_FROM 313
#define T_TO 314
#define T_DO 315
#define T_BY 316
#define T_WHILE 317
#define T_MUPMAP_WHILE 318
#define T_RPN_WHILE 319
#define T_REPEAT 320
#define T_UNTIL 321
#define T_IN 322
#define T_START 323
#define T_BREAK 324
#define T_CONTINUE 325
#define T_TRY 326
#define T_CATCH 327
#define T_TRY_CATCH 328
#define T_PROC 329
#define T_BLOC 330
#define T_BLOC_BEGIN 331
#define T_BLOC_END 332
#define T_RETURN 333
#define T_LOCAL 334
#define T_LOCALBLOC 335
#define T_NAME 336
#define T_PROGRAM 337
#define T_NULL 338
#define T_ARGS 339
#define T_FACTORIAL 340
#define T_RPN_OP 341
#define T_RPN_BEGIN 342
#define T_RPN_END 343
#define T_STACK 344
#define T_GROUPE_BEGIN 345
#define T_GROUPE_END 346
#define T_LINE_BEGIN 347
#define T_LINE_END 348
#define T_VECTOR_BEGIN 349
#define T_VECTOR_END 350
#define T_CURVE_BEGIN 351
#define T_CURVE_END 352
#define T_ROOTOF_BEGIN 353
#define T_ROOTOF_END 354
#define T_SPOLY1_BEGIN 355
#define T_SPOLY1_END 356
#define T_POLY1_BEGIN 357
#define T_POLY1_END 358
#define T_MATRICE_BEGIN 359
#define T_MATRICE_END 360
#define T_ASSUME_BEGIN 361
#define T_ASSUME_END 362
#define T_HELP 363
#define TI_DEUXPOINTS 364
#define TI_LOCAL 365
#define TI_LOOP 366
#define TI_FOR 367
#define TI_WHILE 368
#define TI_STO 369
#define TI_TRY 370
#define TI_DIALOG 371
#define T_PIPE 372
#define TI_DEFINE 373
#define TI_PRGM 374
#define TI_SEMI 375
#define TI_HASH 376
#define T_ACCENTGRAVE 377
#define T_MAPLELIB 378
#define T_INTERROGATION 379
#define T_UNIT 380
#define T_BIDON 381
#define T_LOGO 382
#define T_SQ 383
#define T_CASE38 384
#define T_IFERR 385
#define T_MOINS38 386
#define T_NEG38 387
#define T_UNARY_OP_38 388
#define T_FUNCTION 389
#define T_IMPMULT 390
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef int YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif