blob: 35cf2b3da55f40f1907554bad72a209a486f0e38 (
plain)
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
|
/*
* The #defines for tokens can be overridden by a -DTokDotH=... compiler
* option. This specifies a file containing token #defines and is useful
* for creating an embedded preprocessor where token definitions are
* generated by yacc from a grammar.
*
* Otherwise, the default token definitions are RTT's; if NoRTT is
* defined, then this file's definitions are used.
*/
#ifdef TokDotH
#include TokDotH
#else /* TokDotH */
#ifndef NoRTT
#include "../rtt/ltoken.h"
#else /* RTT */
/*
* These are the numbers for tokens (other than single characters) returned
* by the preproccesor and seen by a yacc parser for a C grammar.
*/
#define And 257
#define AndAsgn 258
#define Arrow 259
#define CharConst 260
#define Decr 261
#define DivAsgn 262
#define Ellipsis 263
#define TokEqual 264
#define Geq 265
#define Identifier 266
#define Incr 267
#define LCharConst 268
#define LShft 269
#define LShftAsgn 270
#define LStrLit 271
#define Leq 272
#define MinusAsgn 273
#define ModAsgn 274
#define MultAsgn 275
#define Neq 276
#define Or 277
#define OrAsgn 278
#define PlusAsgn 279
#define RShft 280
#define RShftAsgn 281
#define StrLit 282
#define XorAsgn 283
#endif /* NoRTT */
#endif /* TokDotH */
|