* src/lalr.h, src/lalr.c (goto_number_t): New.

* src/lalr.c (goto_list_t): New.
Propagate them.
* src/nullable.c (rule_list_t): New.
Propagate.
* src/types.h: Remove.
This commit is contained in:
Akim Demaille
2002-07-03 10:54:33 +00:00
parent e1a4f3a428
commit e68e0410ab
7 changed files with 55 additions and 60 deletions

View File

@@ -49,7 +49,10 @@ void lalr PARAMS ((void));
together and GOTO_MAP[I - NTOKENS] is the index in FROM_STATE and
TO_STATE of the first of them. */
extern short *goto_map;
typedef short goto_number_t;
# define GOTO_NUMBER_MAX ((goto_number_t) INT_MAX)
extern goto_number_t *goto_map;
extern state_number_t *from_state;
extern state_number_t *to_state;