mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
Separate parser tables computation and output.
* src/output.c (nvectors, base_t, base, base_ninf, conflict_table) (conflict_list, conflict_list_cnt, table, check, table_ninf) (yydefgoto, yydefact, high): Move to... * src/tables.h, src/tables.c: here. * src/output.c (vector_number_t, VECTOR_NUMBER_MAX) (VECTOR_NUMBER_MIN, state_number_to_vector_number) (symbol_number_to_vector_number, nvectors, BASE_MAX, BASE_MIN) (froms, tos, conflict_tos, tally, width, action_t, ACTION_MAX) (ACTION_MIN, actrow, order, nentries, pos, conflrow) (conflict_list_free, table_size, lowzero, table_grow, conflict_row) (action_row, save_row, token_actions, save_column, default_goto) (goto_actions, sort_actions, matching_state, pack_vector) (table_ninf_remap, pack_table, prepare_actions): Move to... * src/tables.c: here. * src/tables.h, src/tables.c(tables_generate, tables_free): New. * src/output.c (token_actions, output_base, output_conflicts) (output_check): Merge into... (prepare_actions): this. (actions_output): Rename as... (user_actions_output): this. * src/main.c (main): Call tables_generate and tables_free.
This commit is contained in:
@@ -9,7 +9,11 @@ src/print.c
|
||||
src/reader.c
|
||||
src/reduce.c
|
||||
src/scan-gram.c
|
||||
src/symlist.c
|
||||
src/symtab.c
|
||||
src/tables.c
|
||||
|
||||
lib/argmatch.c
|
||||
lib/error.c
|
||||
lib/getopt.c
|
||||
lib/obstack.c
|
||||
|
||||
Reference in New Issue
Block a user