43 |
|
|
44 |
/* Internal token numbers. */ |
/* Internal token numbers. */ |
45 |
typedef short token_number_t; |
typedef short token_number_t; |
46 |
|
|
47 |
#define SUNDEF -1 /* For undefined user number. */ |
#define SUNDEF -1 /* For undefined user number. */ |
48 |
#define SALIAS -9991 /* for symbol generated with an alias */ |
#define SALIAS -9991 /* for symbol generated with an alias */ |
49 |
|
|
50 |
|
#define NUMBER_UNDEFINED ((token_number_t) -1) |
51 |
|
|
52 |
struct symbol_s |
struct symbol_s |
53 |
{ |
{ |
54 |
/* The key, name of the symbol. */ |
/* The key, name of the symbol. */ |
55 |
char *tag; |
char *tag; |
56 |
/* Its type. */ |
/* Its type. */ |
57 |
char *type_name; |
char *type_name; |
58 |
|
|
59 |
token_number_t number; |
token_number_t number; |
60 |
short prec; |
short prec; |
61 |
associativity assoc; |
associativity assoc; |