82 |
/* For a given state, N = ACTROW[SYMBOL]: |
/* For a given state, N = ACTROW[SYMBOL]: |
83 |
|
|
84 |
If N = 0, stands for `run the default action'. |
If N = 0, stands for `run the default action'. |
85 |
If N = MIN, stands for `raise a parse error'. |
If N = MIN, stands for `raise a syntax error'. |
86 |
If N > 0, stands for `shift SYMBOL and go to n'. |
If N > 0, stands for `shift SYMBOL and go to n'. |
87 |
If N < 0, stands for `reduce -N'. */ |
If N < 0, stands for `reduce -N'. */ |
88 |
typedef short action_t; |
typedef short action_t; |
116 |
static size_t table_size = 32768; |
static size_t table_size = 32768; |
117 |
base_t *table = NULL; |
base_t *table = NULL; |
118 |
base_t *check = NULL; |
base_t *check = NULL; |
119 |
/* The value used in TABLE to denote explicit parse errors |
/* The value used in TABLE to denote explicit syntax errors |
120 |
(%nonassoc), a negative infinite. First defaults to ACTION_MIN, |
(%nonassoc), a negative infinite. First defaults to ACTION_MIN, |
121 |
but in order to keep small tables, renumbered as TABLE_ERROR, which |
but in order to keep small tables, renumbered as TABLE_ERROR, which |
122 |
is the smallest (non error) value minus 1. */ |
is the smallest (non error) value minus 1. */ |