Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
exparse.h
Go to the documentation of this file.
1/* A Bison parser, made by GNU Bison 3.5.1. */
2
3/* Bison interface for Yacc-like parsers in C
4
5 Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 Free Software Foundation,
6 Inc.
7
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
20
21/* As a special exception, you may create a larger work that contains
22 part or all of the Bison parser skeleton and distribute that work
23 under terms of your choice, so long as that work isn't itself a
24 parser generator using the skeleton or a modified version thereof
25 as a parser skeleton. Alternatively, if you modify or redistribute
26 the parser skeleton itself, you may (at your option) remove this
27 special exception, which will cause the skeleton and the resulting
28 Bison output files to be licensed under the GNU General Public
29 License without this special exception.
30
31 This special exception was added by the Free Software Foundation in
32 version 2.2 of Bison. */
33
34/* Undocumented macros, especially those whose name start with YY_,
35 are private implementation details. Do not rely on them. */
36
37#ifndef YY_EX_EXPARSE_H_INCLUDED
38# define YY_EX_EXPARSE_H_INCLUDED
39/* Debug traces. */
40#ifndef EX_DEBUG
41# if defined YYDEBUG
42#if YYDEBUG
43# define EX_DEBUG 1
44# else
45# define EX_DEBUG 0
46# endif
47# else /* ! defined YYDEBUG */
48# define EX_DEBUG 1
49# endif /* ! defined YYDEBUG */
50#endif /* ! defined EX_DEBUG */
51#if EX_DEBUG
52extern int ex_debug;
53#endif
54
55/* Token type. */
56#ifndef EX_TOKENTYPE
57# define EX_TOKENTYPE
59 {
60 MINTOKEN = 258,
61 INTEGER = 259,
62 UNSIGNED = 260,
63 CHARACTER = 261,
64 FLOATING = 262,
65 STRING = 263,
66 VOIDTYPE = 264,
67 ADDRESS = 265,
68 ARRAY = 266,
69 BREAK = 267,
70 CALL = 268,
71 CASE = 269,
72 CONSTANT = 270,
73 CONTINUE = 271,
74 DECLARE = 272,
75 DEFAULT = 273,
76 DYNAMIC = 274,
77 ELSE = 275,
78 EXIT = 276,
79 FOR = 277,
80 FUNCTION = 278,
81 GSUB = 279,
82 ITERATE = 280,
83 ITERATOR = 281,
84 ID = 282,
85 IF = 283,
86 LABEL = 284,
87 MEMBER = 285,
88 NAME = 286,
89 POS = 287,
90 PRAGMA = 288,
91 PRE = 289,
92 PRINT = 290,
93 PRINTF = 291,
94 PROCEDURE = 292,
95 QUERY = 293,
96 RAND = 294,
97 RETURN = 295,
98 SCANF = 296,
99 SPLIT = 297,
100 SPRINTF = 298,
101 SRAND = 299,
102 SSCANF = 300,
103 SUB = 301,
104 SUBSTR = 302,
105 SWITCH = 303,
106 TOKENS = 304,
107 UNSET = 305,
108 WHILE = 306,
109 F2I = 307,
110 F2S = 308,
111 I2F = 309,
112 I2S = 310,
113 S2B = 311,
114 S2F = 312,
115 S2I = 313,
116 F2X = 314,
117 I2X = 315,
118 S2X = 316,
119 X2F = 317,
120 X2I = 318,
121 X2S = 319,
122 X2X = 320,
123 XPRINT = 321,
124 OR = 322,
125 AND = 323,
126 EQ = 324,
127 NE = 325,
128 LE = 326,
129 GE = 327,
130 LSH = 328,
131 RSH = 329,
132 IN_OP = 330,
133 UNARY = 331,
134 INC = 332,
135 DEC = 333,
136 CAST = 334,
137 MAXTOKEN = 335
138 };
139#endif
140/* Tokens. */
141#define MINTOKEN 258
142#define INTEGER 259
143#define UNSIGNED 260
144#define CHARACTER 261
145#define FLOATING 262
146#define STRING 263
147#define VOIDTYPE 264
148#define ADDRESS 265
149#define ARRAY 266
150#define BREAK 267
151#define CALL 268
152#define CASE 269
153#define CONSTANT 270
154#define CONTINUE 271
155#define DECLARE 272
156#define DEFAULT 273
157#define DYNAMIC 274
158#define ELSE 275
159#define EXIT 276
160#define FOR 277
161#define FUNCTION 278
162#define GSUB 279
163#define ITERATE 280
164#define ITERATOR 281
165#define ID 282
166#define IF 283
167#define LABEL 284
168#define MEMBER 285
169#define NAME 286
170#define POS 287
171#define PRAGMA 288
172#define PRE 289
173#define PRINT 290
174#define PRINTF 291
175#define PROCEDURE 292
176#define QUERY 293
177#define RAND 294
178#define RETURN 295
179#define SCANF 296
180#define SPLIT 297
181#define SPRINTF 298
182#define SRAND 299
183#define SSCANF 300
184#define SUB 301
185#define SUBSTR 302
186#define SWITCH 303
187#define TOKENS 304
188#define UNSET 305
189#define WHILE 306
190#define F2I 307
191#define F2S 308
192#define I2F 309
193#define I2S 310
194#define S2B 311
195#define S2F 312
196#define S2I 313
197#define F2X 314
198#define I2X 315
199#define S2X 316
200#define X2F 317
201#define X2I 318
202#define X2S 319
203#define X2X 320
204#define XPRINT 321
205#define OR 322
206#define AND 323
207#define EQ 324
208#define NE 325
209#define LE 326
210#define GE 327
211#define LSH 328
212#define RSH 329
213#define IN_OP 330
214#define UNARY 331
215#define INC 332
216#define DEC 333
217#define CAST 334
218#define MAXTOKEN 335
219
220/* Value type. */
221#if ! defined EX_STYPE && ! defined EX_STYPE_IS_DECLARED
222union EX_STYPE
223{
224#line 41 "../../lib/expr/exparse.y"
225
226 struct Exnode_s*expr;
227 double floating;
228 struct Exref_s* reference;
229 struct Exid_s* id;
230 long long integer;
231 int op;
232 char* string;
233
234#line 235 "exparse.h"
235
236};
237typedef union EX_STYPE EX_STYPE;
238# define EX_STYPE_IS_TRIVIAL 1
239# define EX_STYPE_IS_DECLARED 1
240#endif
241
242
243extern EX_STYPE ex_lval;
244
245int ex_parse (void);
246
247#endif /* !YY_EX_EXPARSE_H_INCLUDED */
ex_tokentype
Definition exparse.c:153
#define UNSIGNED
Definition exparse.h:143
#define ELSE
Definition exparse.h:158
#define LABEL
Definition exparse.h:167
#define STRING
Definition exparse.h:146
#define CHARACTER
Definition exparse.h:144
#define DYNAMIC
Definition exparse.h:157
#define SCANF
Definition exparse.h:179
#define F2S
Definition exparse.h:191
#define SSCANF
Definition exparse.h:183
#define RSH
Definition exparse.h:212
#define ADDRESS
Definition exparse.h:148
#define OR
Definition exparse.h:205
#define PRE
Definition exparse.h:172
#define GE
Definition exparse.h:210
#define MINTOKEN
Definition exparse.h:141
#define DEFAULT
Definition exparse.h:156
#define NAME
Definition exparse.h:169
#define X2F
Definition exparse.h:200
#define S2X
Definition exparse.h:199
#define WHILE
Definition exparse.h:189
#define ITERATE
Definition exparse.h:163
#define MAXTOKEN
Definition exparse.h:218
#define NE
Definition exparse.h:208
#define SRAND
Definition exparse.h:182
#define S2I
Definition exparse.h:196
#define SUB
Definition exparse.h:184
#define POS
Definition exparse.h:170
#define LSH
Definition exparse.h:211
#define FLOATING
Definition exparse.h:145
#define FOR
Definition exparse.h:160
#define RETURN
Definition exparse.h:178
#define I2X
Definition exparse.h:198
#define IN_OP
Definition exparse.h:213
#define SUBSTR
Definition exparse.h:185
#define TOKENS
Definition exparse.h:187
#define ITERATOR
Definition exparse.h:164
#define VOIDTYPE
Definition exparse.h:147
#define ID
Definition exparse.h:165
#define RAND
Definition exparse.h:177
int ex_parse(void)
#define PRINT
Definition exparse.h:173
#define CAST
Definition exparse.h:217
#define I2F
Definition exparse.h:192
#define INTEGER
Definition exparse.h:142
#define SPRINTF
Definition exparse.h:181
#define I2S
Definition exparse.h:193
EX_STYPE ex_lval
#define CONSTANT
Definition exparse.h:153
#define LE
Definition exparse.h:209
#define MEMBER
Definition exparse.h:168
#define S2B
Definition exparse.h:194
#define CALL
Definition exparse.h:151
#define GSUB
Definition exparse.h:162
#define PRAGMA
Definition exparse.h:171
#define UNARY
Definition exparse.h:214
#define UNSET
Definition exparse.h:188
#define CONTINUE
Definition exparse.h:154
#define XPRINT
Definition exparse.h:204
#define F2I
Definition exparse.h:190
#define X2S
Definition exparse.h:202
#define SPLIT
Definition exparse.h:180
#define EQ
Definition exparse.h:207
#define BREAK
Definition exparse.h:150
#define S2F
Definition exparse.h:195
#define IF
Definition exparse.h:166
#define PROCEDURE
Definition exparse.h:175
#define SWITCH
Definition exparse.h:186
#define AND
Definition exparse.h:206
#define DECLARE
Definition exparse.h:155
#define X2X
Definition exparse.h:203
#define EXIT
Definition exparse.h:159
#define F2X
Definition exparse.h:197
#define X2I
Definition exparse.h:201
#define PRINTF
Definition exparse.h:174
#define QUERY
Definition exparse.h:176
#define FUNCTION
Definition exparse.h:161
#define CASE
Definition exparse.h:152
#define ARRAY
Definition exparse.h:149
#define INC
Definition exparse.h:215
#define DEC
Definition exparse.h:216
Definition expr.h:93
struct Exref_s * reference
Definition exparse.c:322
struct Exid_s * id
Definition exparse.c:323
char * string
Definition exparse.c:326
long long integer
Definition exparse.c:324
double floating
Definition exparse.c:321
struct Exnode_s * expr
Definition exparse.c:320
int op
Definition exparse.c:325