blob: 3b862b6e784073b8906bc8b4cd638422587b7fce (
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
|
/* l2xiscan.h for LTX2X interpreter scanner */
#ifndef scanner_h
#define scanner_h
#include "l2xicmon.h"
/* token codes */
typedef enum {
#define sctc(a, b, c) a,
#include "l2xisctc.h"
#undef sctc
} TOKEN_CODE;
/* literal structure */
typedef enum {
INTEGER_LIT,
REAL_LIT,
STRING_LIT,
} LITERAL_TYPE;
typedef struct {
LITERAL_TYPE type;
union {
XPRSAINT integer;
XPRSAREAL real;
char string[MAX_SOURCE_LINE_LENGTH];
} value;
} LITERAL;
/* functions */
BOOLEAN token_in();
#endif
|