Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
att
GitHub Repository: att/ast
Path: blob/master/src/lib/libexpr/Oexparse.h
1808 views
1
/***********************************************************************
2
* *
3
* This software is part of the ast package *
4
* Copyright (c) 1989-2012 AT&T Intellectual Property *
5
* and is licensed under the *
6
* Eclipse Public License, Version 1.0 *
7
* by AT&T Intellectual Property *
8
* *
9
* A copy of the License is available at *
10
* http://www.eclipse.org/org/documents/epl-v10.html *
11
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
12
* *
13
* Information and Software Systems Research *
14
* AT&T Research *
15
* Florham Park NJ *
16
* *
17
* Glenn Fowler <[email protected]> *
18
* *
19
***********************************************************************/
20
/* : : generated by a yacc that works -- solaris take note : : */
21
22
/* : : generated by proto : : */
23
#ifndef _EXPARSE_H
24
#if !defined(__PROTO__)
25
#include <prototyped.h>
26
#endif
27
#if !defined(__LINKAGE__)
28
#define __LINKAGE__ /* 2004-08-11 transition */
29
#endif
30
31
#define _EXPARSE_H
32
#define MINTOKEN 257
33
#define CHAR 258
34
#define INT 259
35
#define INTEGER 260
36
#define UNSIGNED 261
37
#define FLOATING 262
38
#define STRING 263
39
#define VOID 264
40
#define STATIC 265
41
#define ADDRESS 266
42
#define BREAK 267
43
#define CALL 268
44
#define CASE 269
45
#define CONSTANT 270
46
#define CONTINUE 271
47
#define DECLARE 272
48
#define DEFAULT 273
49
#define DYNAMIC 274
50
#define ELSE 275
51
#define EXIT 276
52
#define FOR 277
53
#define FUNCTION 278
54
#define ITERATE 279
55
#define ID 280
56
#define IF 281
57
#define LABEL 282
58
#define MEMBER 283
59
#define NAME 284
60
#define POS 285
61
#define PRAGMA 286
62
#define PRE 287
63
#define PRINTF 288
64
#define PROCEDURE 289
65
#define QUERY 290
66
#define RETURN 291
67
#define SCANF 292
68
#define SPRINTF 293
69
#define SSCANF 294
70
#define SWITCH 295
71
#define WHILE 296
72
#define F2I 297
73
#define F2S 298
74
#define I2F 299
75
#define I2S 300
76
#define S2B 301
77
#define S2F 302
78
#define S2I 303
79
#define F2X 304
80
#define I2X 305
81
#define S2X 306
82
#define X2F 307
83
#define X2I 308
84
#define X2S 309
85
#define OR 310
86
#define AND 311
87
#define EQ 312
88
#define NE 313
89
#define LE 314
90
#define GE 315
91
#define LS 316
92
#define RS 317
93
#define UNARY 318
94
#define INC 319
95
#define DEC 320
96
#define CAST 321
97
#define MAXTOKEN 322
98
typedef union
99
{
100
struct Exnode_s*expr;
101
double floating;
102
struct Exref_s* reference;
103
struct Exid_s* id;
104
Sflong_t integer;
105
int op;
106
char* string;
107
struct Exbuf_s* buffer;
108
} EXSTYPE;
109
extern __MANGLE__ EXSTYPE exlval;
110
#endif /* _EXPARSE_H */
111
112