Separate parser tables computation and output.
authorAkim Demaille <akim@epita.fr>
Wed, 31 Jul 2002 21:52:00 +0000 (21:52 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 31 Jul 2002 21:52:00 +0000 (21:52 +0000)
commitc6f1a33c06db52ed122d0922885602cf37f99941
tree3199f1f6b635aa7944e2816f5a9f0ce1a4ea08db
parent1509d42fcb8fb8a78d46f0c26b863cafd347bee5
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.
ChangeLog
po/POTFILES.in
src/Makefile.am
src/main.c
src/output.c
src/output.h
src/scan-skel.l
src/tables.c [new file with mode: 0644]
src/tables.h [new file with mode: 0644]