|
Berkeley YACC
1993-03-03
Berkeley's version of Yet Another Compiler Compiler
|
#include "defs.h"
Include dependency graph for lr0.c:Go to the source code of this file.
Functions | |
| int | get_state () |
| core * | new_state () |
| allocate_itemsets () | |
| allocate_storage () | |
| append_states () | |
| free_storage () | |
| generate_states () | |
| int | get_state (int symbol) |
| initialize_states () | |
| new_itemsets () | |
| core * | new_state (int symbol) |
| show_cores () | |
| show_ritems () | |
| show_rrhs () | |
| show_shifts () | |
| save_shifts () | |
| save_reductions () | |
| set_derives () | |
| free_derives () | |
| set_nullable () | |
| free_nullable () | |
| lr0 () | |
Variables | |
| short * | itemset |
| short * | itemsetend |
| unsigned * | ruleset |
| Bitset of closure items for the current state. More... | |
| int | nstates |
| core * | first_state |
| shifts * | first_shift |
| reductions * | first_reduction |
| static core ** | state_set |
| static core * | this_state |
| static core * | last_state |
| static shifts * | last_shift |
| static reductions * | last_reduction |
| static int | nshifts |
| static short * | shift_symbol |
| static short * | redset |
| static short * | shiftset |
| static short ** | kernel_base |
| static short ** | kernel_end |
| static short * | kernel_items |
| allocate_itemsets | ( | ) |
Definition at line 33 of file lr0.c.
References kernel_base, kernel_end, kernel_items, NEW2, nitems, nsyms, ritem, and shift_symbol.
Referenced by allocate_storage().
Here is the caller graph for this function:| allocate_storage | ( | ) |
Definition at line 75 of file lr0.c.
References allocate_itemsets(), NEW2, nitems, nrules, nsyms, redset, and shiftset.
Referenced by generate_states().
Here is the call graph for this function:
Here is the caller graph for this function:| append_states | ( | ) |
Definition at line 84 of file lr0.c.
References get_state(), nshifts, shift_symbol, and shiftset.
Referenced by generate_states().
Here is the call graph for this function:
Here is the caller graph for this function:| free_derives | ( | ) |
| free_storage | ( | ) |
Definition at line 113 of file lr0.c.
References FREE, kernel_base, kernel_end, kernel_items, redset, shift_symbol, and shiftset.
Referenced by generate_states().
Here is the caller graph for this function:| generate_states | ( | ) |
Definition at line 126 of file lr0.c.
References allocate_storage(), append_states(), closure(), finalize_closure(), free_storage(), initialize_states(), core::items, itemset, NEW2, new_itemsets(), core::next, core::nitems, nitems, nrules, nshifts, ruleset, save_reductions(), save_shifts(), set_first_derives(), and WORDSIZE.
Referenced by lr0().
Here is the call graph for this function:
Here is the caller graph for this function:| int get_state | ( | ) |
| int get_state | ( | int | symbol | ) |
Definition at line 154 of file lr0.c.
References core::items, kernel_base, kernel_end, core::link, new_state(), core::nitems, nitems, and core::number.
Here is the call graph for this function:| initialize_states | ( | ) |
Definition at line 218 of file lr0.c.
References core::accessing_symbol, derives, core::items, core::link, MALLOC, core::next, core::nitems, no_space(), nstates, core::number, rrhs, and start_symbol.
Referenced by generate_states().
Here is the call graph for this function:
Here is the caller graph for this function:| lr0 | ( | ) |
Definition at line 593 of file lr0.c.
References generate_states(), set_derives(), and set_nullable().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| new_itemsets | ( | ) |
Definition at line 245 of file lr0.c.
References itemset, itemsetend, kernel_base, kernel_end, nshifts, nsyms, ritem, and shift_symbol.
Referenced by generate_states().
Here is the caller graph for this function:| core* new_state | ( | ) |
| core* new_state | ( | int | symbol | ) |
Definition at line 282 of file lr0.c.
References core::accessing_symbol, allocate(), fatal(), core::items, kernel_base, kernel_end, MAXSHORT, core::next, core::nitems, nstates, and core::number.
Here is the call graph for this function:| save_reductions | ( | ) |
Definition at line 430 of file lr0.c.
References allocate(), itemset, itemsetend, reductions::next, reductions::nreds, core::number, reductions::number, redset, ritem, and reductions::rules.
Referenced by generate_states().
Here is the call graph for this function:
Here is the caller graph for this function:| save_shifts | ( | ) |
Definition at line 396 of file lr0.c.
References allocate(), shifts::next, nshifts, shifts::nshifts, core::number, shifts::number, shifts::shift, and shiftset.
Referenced by generate_states().
Here is the call graph for this function:
Here is the caller graph for this function:| set_derives | ( | ) |
| set_nullable | ( | ) |
Definition at line 538 of file lr0.c.
References done(), MALLOC, nitems, no_space(), nsyms, nullable, ritem, rlhs, and symbol_name.
Referenced by lr0().
Here is the call graph for this function:
Here is the caller graph for this function:| show_cores | ( | ) |
Definition at line 322 of file lr0.c.
References core::next, ritem, rlhs, rrhs, and symbol_name.
| show_ritems | ( | ) |
| show_shifts | ( | ) |
| reductions* first_reduction |
Definition at line 11 of file lr0.c.
Referenced by free_reductions(), and set_reduction_table().
| shifts* first_shift |
Definition at line 10 of file lr0.c.
Referenced by free_shifts(), set_goto_map(), and set_shift_table().
| core* first_state |
Definition at line 9 of file lr0.c.
Referenced by free_itemsets(), set_accessing_symbol(), and set_state_table().
| short* itemset |
Definition at line 3 of file closure.c.
Referenced by closure(), finalize_closure(), generate_states(), new_itemsets(), and save_reductions().
| short* itemsetend |
Definition at line 4 of file closure.c.
Referenced by closure(), new_itemsets(), and save_reductions().
|
static |
Definition at line 28 of file lr0.c.
Referenced by allocate_itemsets(), free_storage(), get_state(), new_itemsets(), and new_state().
|
static |
Definition at line 29 of file lr0.c.
Referenced by allocate_itemsets(), free_storage(), get_state(), new_itemsets(), and new_state().
|
static |
Definition at line 30 of file lr0.c.
Referenced by allocate_itemsets(), and free_storage().
|
static |
|
static |
Definition at line 22 of file lr0.c.
Referenced by append_states(), generate_states(), new_itemsets(), and save_shifts().
| int nstates |
Definition at line 8 of file lr0.c.
Referenced by compute_lookaheads(), default_goto(), defreds(), free_parser(), goto_actions(), initialize_LA(), initialize_states(), log_conflicts(), make_parser(), matching_vector(), new_state(), output_actions(), output_base(), output_yydefred(), remove_conflicts(), save_column(), set_accessing_symbol(), set_reduction_table(), set_shift_table(), set_state_table(), token_actions(), unused_rules(), and verbose().
|
static |
Definition at line 25 of file lr0.c.
Referenced by allocate_storage(), free_storage(), and save_reductions().
| unsigned* ruleset |
Bitset of closure items for the current state.
The n-th bit is set if and only if the n-th rule is part of the closure of the currently analyzed state. This variable is allocated in generate_states(), overwritten by each iteration of closure() and deleted in finalize_closure().
Definition at line 13 of file closure.c.
Referenced by closure(), finalize_closure(), and generate_states().
|
static |
Definition at line 23 of file lr0.c.
Referenced by allocate_itemsets(), append_states(), free_storage(), and new_itemsets().
|
static |
Definition at line 26 of file lr0.c.
Referenced by allocate_storage(), append_states(), free_storage(), and save_shifts().