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
52
extern
int
ex_debug;
53
#endif
54
55
/* Token type. */
56
#ifndef EX_TOKENTYPE
57
# define EX_TOKENTYPE
58
enum
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
222
union
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
};
237
typedef
union
EX_STYPE
EX_STYPE
;
238
# define EX_STYPE_IS_TRIVIAL 1
239
# define EX_STYPE_IS_DECLARED 1
240
#endif
241
242
243
extern
EX_STYPE
ex_lval
;
244
245
int
ex_parse
(
void
);
246
247
#endif
/* !YY_EX_EXPARSE_H_INCLUDED */
ex_tokentype
ex_tokentype
Definition
exparse.c:153
UNSIGNED
#define UNSIGNED
Definition
exparse.h:143
ELSE
#define ELSE
Definition
exparse.h:158
LABEL
#define LABEL
Definition
exparse.h:167
STRING
#define STRING
Definition
exparse.h:146
CHARACTER
#define CHARACTER
Definition
exparse.h:144
DYNAMIC
#define DYNAMIC
Definition
exparse.h:157
SCANF
#define SCANF
Definition
exparse.h:179
F2S
#define F2S
Definition
exparse.h:191
SSCANF
#define SSCANF
Definition
exparse.h:183
RSH
#define RSH
Definition
exparse.h:212
ADDRESS
#define ADDRESS
Definition
exparse.h:148
OR
#define OR
Definition
exparse.h:205
PRE
#define PRE
Definition
exparse.h:172
GE
#define GE
Definition
exparse.h:210
MINTOKEN
#define MINTOKEN
Definition
exparse.h:141
DEFAULT
#define DEFAULT
Definition
exparse.h:156
NAME
#define NAME
Definition
exparse.h:169
X2F
#define X2F
Definition
exparse.h:200
S2X
#define S2X
Definition
exparse.h:199
WHILE
#define WHILE
Definition
exparse.h:189
ITERATE
#define ITERATE
Definition
exparse.h:163
MAXTOKEN
#define MAXTOKEN
Definition
exparse.h:218
NE
#define NE
Definition
exparse.h:208
SRAND
#define SRAND
Definition
exparse.h:182
S2I
#define S2I
Definition
exparse.h:196
SUB
#define SUB
Definition
exparse.h:184
POS
#define POS
Definition
exparse.h:170
LSH
#define LSH
Definition
exparse.h:211
FLOATING
#define FLOATING
Definition
exparse.h:145
FOR
#define FOR
Definition
exparse.h:160
RETURN
#define RETURN
Definition
exparse.h:178
I2X
#define I2X
Definition
exparse.h:198
IN_OP
#define IN_OP
Definition
exparse.h:213
SUBSTR
#define SUBSTR
Definition
exparse.h:185
TOKENS
#define TOKENS
Definition
exparse.h:187
ITERATOR
#define ITERATOR
Definition
exparse.h:164
VOIDTYPE
#define VOIDTYPE
Definition
exparse.h:147
ID
#define ID
Definition
exparse.h:165
RAND
#define RAND
Definition
exparse.h:177
ex_parse
int ex_parse(void)
PRINT
#define PRINT
Definition
exparse.h:173
CAST
#define CAST
Definition
exparse.h:217
I2F
#define I2F
Definition
exparse.h:192
INTEGER
#define INTEGER
Definition
exparse.h:142
SPRINTF
#define SPRINTF
Definition
exparse.h:181
I2S
#define I2S
Definition
exparse.h:193
ex_lval
EX_STYPE ex_lval
CONSTANT
#define CONSTANT
Definition
exparse.h:153
LE
#define LE
Definition
exparse.h:209
MEMBER
#define MEMBER
Definition
exparse.h:168
S2B
#define S2B
Definition
exparse.h:194
CALL
#define CALL
Definition
exparse.h:151
GSUB
#define GSUB
Definition
exparse.h:162
PRAGMA
#define PRAGMA
Definition
exparse.h:171
UNARY
#define UNARY
Definition
exparse.h:214
UNSET
#define UNSET
Definition
exparse.h:188
CONTINUE
#define CONTINUE
Definition
exparse.h:154
XPRINT
#define XPRINT
Definition
exparse.h:204
F2I
#define F2I
Definition
exparse.h:190
X2S
#define X2S
Definition
exparse.h:202
SPLIT
#define SPLIT
Definition
exparse.h:180
EQ
#define EQ
Definition
exparse.h:207
BREAK
#define BREAK
Definition
exparse.h:150
S2F
#define S2F
Definition
exparse.h:195
IF
#define IF
Definition
exparse.h:166
PROCEDURE
#define PROCEDURE
Definition
exparse.h:175
SWITCH
#define SWITCH
Definition
exparse.h:186
AND
#define AND
Definition
exparse.h:206
DECLARE
#define DECLARE
Definition
exparse.h:155
X2X
#define X2X
Definition
exparse.h:203
EXIT
#define EXIT
Definition
exparse.h:159
F2X
#define F2X
Definition
exparse.h:197
X2I
#define X2I
Definition
exparse.h:201
PRINTF
#define PRINTF
Definition
exparse.h:174
QUERY
#define QUERY
Definition
exparse.h:176
FUNCTION
#define FUNCTION
Definition
exparse.h:161
CASE
#define CASE
Definition
exparse.h:152
ARRAY
#define ARRAY
Definition
exparse.h:149
INC
#define INC
Definition
exparse.h:215
DEC
#define DEC
Definition
exparse.h:216
Exid_s
Definition
expr.h:93
Exnode_s
Definition
expr.h:150
Exref_s
Definition
expr.h:106
EX_STYPE
Definition
exparse.c:317
EX_STYPE::reference
struct Exref_s * reference
Definition
exparse.c:322
EX_STYPE::id
struct Exid_s * id
Definition
exparse.c:323
EX_STYPE::string
char * string
Definition
exparse.c:326
EX_STYPE::integer
long long integer
Definition
exparse.c:324
EX_STYPE::floating
double floating
Definition
exparse.c:321
EX_STYPE::expr
struct Exnode_s * expr
Definition
exparse.c:320
EX_STYPE::op
int op
Definition
exparse.c:325
lib
expr
exparse.h
Generated by
1.9.8