|
Berkeley YACC
1993-03-03
Berkeley's version of Yet Another Compiler Compiler
|
#include "defs.h"
Include dependency graph for output.c:Go to the source code of this file.
Functions | |
| output () | |
| output_prefix () | |
| output_rule_data () | |
| output_yydefred () | |
| output_actions () | |
| token_actions () | |
| goto_actions () | |
| int | default_goto (int symbol) |
| save_column (int symbol, int default_state) | |
| sort_actions () | |
| pack_table () | |
| int | matching_vector (int vector) |
| int | pack_vector (int vector) |
| output_base () | |
| output_table () | |
| output_check () | |
| int | is_C_identifier (char *name) |
| output_defines () | |
| output_stored_text () | |
| output_debug () | |
| output_stype () | |
| output_trailing_text () | |
| output_semantic_actions () | |
| free_itemsets () | |
| free_shifts () | |
| free_reductions () | |
Variables | |
| static int | nvectors |
| static int | nentries |
| static short ** | froms |
| static short ** | tos |
| static short * | tally |
| static short * | width |
| static short * | state_count |
| static short * | order |
| static short * | base |
| static short * | pos |
| static int | maxtable |
| static short * | table |
| static short * | check |
| static int | lowzero |
| static int | high |
| int default_goto | ( | int | symbol | ) |
Definition at line 322 of file output.c.
References goto_map, nstates, state_count, and to_state.
Referenced by goto_actions().
Here is the caller graph for this function:| free_itemsets | ( | ) |
Definition at line 1173 of file output.c.
References first_state, FREE, shorts::next, core::next, and state_table.
Referenced by output().
Here is the caller graph for this function:| free_reductions | ( | ) |
Definition at line 1200 of file output.c.
References first_reduction, FREE, shorts::next, reductions::next, and reduction_table.
Referenced by output().
Here is the caller graph for this function:| free_shifts | ( | ) |
Definition at line 1186 of file output.c.
References first_shift, FREE, shorts::next, shifts::next, and shift_table.
Referenced by output().
Here is the caller graph for this function:| goto_actions | ( | ) |
Definition at line 289 of file output.c.
References default_goto(), FREE, NEW2, nstates, nsyms, outline, output_file, rflag, save_column(), start_symbol, state_count, and symbol_prefix.
Referenced by output_actions().
Here is the call graph for this function:
Here is the caller graph for this function:| int is_C_identifier | ( | char * | name | ) |
Definition at line 744 of file output.c.
Referenced by output_defines().
Here is the caller graph for this function:| int matching_vector | ( | int | vector | ) |
| output | ( | ) |
Definition at line 20 of file output.c.
References body, free_itemsets(), free_parser(), free_reductions(), free_shifts(), header, output_actions(), output_debug(), output_defines(), output_prefix(), output_rule_data(), output_semantic_actions(), output_stored_text(), output_stype(), output_trailing_text(), output_yydefred(), rflag, tables, trailer, and write_section().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| output_actions | ( | ) |
Definition at line 177 of file output.c.
References accessing_symbol, FREE, from_state, froms, goto_actions(), goto_map, LA, LAruleno, lookaheads, NEW2, nstates, ntokens, nvars, nvectors, output_base(), output_check(), output_table(), pack_table(), sort_actions(), tally, to_state, token_actions(), tos, and width.
Referenced by output().
Here is the call graph for this function:
Here is the caller graph for this function:| output_base | ( | ) |
Definition at line 616 of file output.c.
References base, FREE, nstates, nvectors, outline, output_file, rflag, and symbol_prefix.
Referenced by output_actions().
Here is the caller graph for this function:| output_check | ( | ) |
Definition at line 714 of file output.c.
References check, FREE, high, outline, output_file, rflag, and symbol_prefix.
Referenced by output_actions().
Here is the caller graph for this function:| output_debug | ( | ) |
Definition at line 855 of file output.c.
References code_file, final_state, FREE, MALLOC, no_space(), nrules, ntokens, outline, output_file, rflag, ritem, rlhs, rrhs, symbol_name, symbol_prefix, symbol_value, and tflag.
Referenced by output().
Here is the call graph for this function:
Here is the caller graph for this function:| output_defines | ( | ) |
Definition at line 776 of file output.c.
References code_file, defines_file, dflag, is_C_identifier(), ntokens, open_error(), outline, symbol_name, symbol_prefix, symbol_value, union_file, union_file_name, and unionized.
Referenced by output().
Here is the call graph for this function:
Here is the caller graph for this function:| output_prefix | ( | ) |
| output_rule_data | ( | ) |
Definition at line 103 of file output.c.
References nrules, outline, output_file, rflag, rlhs, rrhs, start_symbol, symbol_prefix, and symbol_value.
Referenced by output().
Here is the caller graph for this function:| output_semantic_actions | ( | ) |
Definition at line 1136 of file output.c.
References action_file, action_file_name, code_file, code_file_name, lflag, line_format, open_error(), and outline.
Referenced by output().
Here is the call graph for this function:
Here is the caller graph for this function:| output_stored_text | ( | ) |
Definition at line 828 of file output.c.
References code_file, code_file_name, lflag, line_format, open_error(), outline, text_file, and text_file_name.
Referenced by output().
Here is the call graph for this function:
Here is the caller graph for this function:| output_stype | ( | ) |
| output_table | ( | ) |
Definition at line 682 of file output.c.
References code_file, FREE, high, outline, output_file, rflag, symbol_prefix, and table.
Referenced by output_actions().
Here is the caller graph for this function:| output_trailing_text | ( | ) |
Definition at line 1079 of file output.c.
References code_file, code_file_name, cptr, input_file, input_file_name, lflag, line, line_format, lineno, and outline.
Referenced by output().
Here is the caller graph for this function:| output_yydefred | ( | ) |
Definition at line 150 of file output.c.
References defred, nstates, outline, output_file, rflag, and symbol_prefix.
Referenced by output().
Here is the caller graph for this function:| pack_table | ( | ) |
Definition at line 435 of file output.c.
References base, check, FREE, froms, high, lowzero, matching_vector(), maxtable, nentries, NEW2, nvectors, order, pack_vector(), pos, table, and tos.
Referenced by output_actions().
Here is the call graph for this function:
Here is the caller graph for this function:| int pack_vector | ( | int | vector | ) |
| save_column | ( | int | symbol, |
| int | default_state | ||
| ) |
Definition at line 358 of file output.c.
References from_state, froms, goto_map, NEW2, nstates, symbol_value, tally, to_state, tos, and width.
Referenced by goto_actions().
Here is the caller graph for this function:| sort_actions | ( | ) |
| token_actions | ( | ) |
Definition at line 205 of file output.c.
References action::action_code, defred, FREE, froms, MAXSHORT, NEW2, action::next, nstates, ntokens, action::number, parser, REDUCE, SHIFT, action::suppressed, action::symbol, symbol_value, tally, tos, and width.
Referenced by output_actions().
Here is the caller graph for this function:
|
static |
Definition at line 11 of file output.c.
Referenced by output_base(), pack_table(), and traverse().
|
static |
Definition at line 15 of file output.c.
Referenced by output_check(), pack_table(), and pack_vector().
|
static |
Definition at line 5 of file output.c.
Referenced by matching_vector(), output_actions(), pack_table(), pack_vector(), save_column(), and token_actions().
|
static |
Definition at line 17 of file output.c.
Referenced by map_goto(), output_check(), output_table(), pack_table(), and pack_vector().
|
static |
Definition at line 16 of file output.c.
Referenced by pack_table(), and pack_vector().
|
static |
Definition at line 13 of file output.c.
Referenced by pack_table(), and pack_vector().
|
static |
Definition at line 4 of file output.c.
Referenced by pack_table(), and sort_actions().
|
static |
Definition at line 3 of file output.c.
Referenced by output_actions(), output_base(), pack_table(), and sort_actions().
|
static |
Definition at line 10 of file output.c.
Referenced by matching_vector(), pack_table(), pack_vector(), and sort_actions().
|
static |
Definition at line 12 of file output.c.
Referenced by pack_table(), and pack_vector().
|
static |
Definition at line 9 of file output.c.
Referenced by default_goto(), and goto_actions().
|
static |
Definition at line 14 of file output.c.
Referenced by output_table(), pack_table(), and pack_vector().
|
static |
Definition at line 7 of file output.c.
Referenced by matching_vector(), output_actions(), pack_vector(), save_column(), sort_actions(), and token_actions().
|
static |
Definition at line 6 of file output.c.
Referenced by matching_vector(), output_actions(), pack_table(), pack_vector(), save_column(), and token_actions().
|
static |
Definition at line 8 of file output.c.
Referenced by matching_vector(), output_actions(), save_column(), sort_actions(), and token_actions().