Berkeley YACC
1993-03-03
Berkeley's version of Yet Another Compiler Compiler
|
#include "defs.h"
Go to the source code of this file.
Functions | |
action * | parse_actions () |
action * | get_shifts () |
action * | add_reductions () |
action * | add_reduce () |
make_parser () | |
action * | parse_actions (int stateno) |
action * | get_shifts (int stateno) |
action * | add_reductions (int stateno, action *actions) |
action * | add_reduce (action *actions, int ruleno, int symbol) |
find_final_state () | |
unused_rules () | |
remove_conflicts () | |
total_conflicts () | |
int | sole_reduction (int stateno) |
defreds () | |
free_action_row (action *p) | |
free_parser () | |
Variables | |
action ** | parser |
int | SRtotal |
int | RRtotal |
short * | SRconflicts |
short * | RRconflicts |
short * | defred |
short * | rules_used |
short | nunused |
short | final_state |
static int | SRcount |
static int | RRcount |
action* add_reduce | ( | ) |
Definition at line 113 of file mkpar.c.
References action::action_code, action::assoc, NEW, shorts::next, action::next, action::number, action::prec, rassoc, REDUCE, rprec, SHIFT, and action::symbol.
action* add_reductions | ( | ) |
Definition at line 87 of file mkpar.c.
References add_reduce(), BIT, LA, LAruleno, lookaheads, ntokens, tokensetsize, and WORDSIZE.
defreds | ( | ) |
Definition at line 326 of file mkpar.c.
References defred, NEW2, nstates, and sole_reduction().
Referenced by make_parser().
find_final_state | ( | ) |
Definition at line 153 of file mkpar.c.
References accessing_symbol, final_state, goal, shifts::nshifts, ritem, shifts::shift, shift_table, and to_state.
Referenced by make_parser().
free_action_row | ( | action * | p | ) |
Definition at line 335 of file mkpar.c.
References FREE, and action::next.
Referenced by free_parser().
free_parser | ( | ) |
action* get_shifts | ( | ) |
action* get_shifts | ( | int | stateno | ) |
Definition at line 52 of file mkpar.c.
References accessing_symbol, action::action_code, action::assoc, ISTOKEN, NEW, action::next, shifts::nshifts, action::number, action::prec, SHIFT, shifts::shift, shift_table, action::symbol, symbol_assoc, symbol_prec, and to_state.
make_parser | ( | ) |
Definition at line 23 of file mkpar.c.
References defreds(), find_final_state(), NEW2, nstates, parse_actions(), remove_conflicts(), RRtotal, SRtotal, total_conflicts(), and unused_rules().
Referenced by main().
action* parse_actions | ( | ) |
action* parse_actions | ( | int | stateno | ) |
Definition at line 40 of file mkpar.c.
References add_reductions(), and get_shifts().
remove_conflicts | ( | ) |
Definition at line 202 of file mkpar.c.
References action::action_code, action::assoc, final_state, LEFT, NEW2, action::next, nstates, action::prec, RIGHT, RRconflicts, RRcount, RRtotal, SHIFT, SRconflicts, SRcount, SRtotal, action::suppressed, and action::symbol.
Referenced by make_parser().
int sole_reduction | ( | int | stateno | ) |
Definition at line 298 of file mkpar.c.
References action::action_code, action::next, action::number, REDUCE, SHIFT, action::suppressed, and action::symbol.
Referenced by defreds().
total_conflicts | ( | ) |
unused_rules | ( | ) |
Definition at line 170 of file mkpar.c.
References action::action_code, MALLOC, myname, action::next, no_space(), nrules, nstates, action::number, nunused, REDUCE, rules_used, and action::suppressed.
Referenced by make_parser().
short* defred |
Definition at line 9 of file mkpar.c.
Referenced by defreds(), output_yydefred(), print_actions(), and token_actions().
short final_state |
Definition at line 12 of file mkpar.c.
Referenced by find_final_state(), output_debug(), print_actions(), print_conflicts(), and remove_conflicts().
short nunused |
Definition at line 11 of file mkpar.c.
Referenced by unused_rules(), and verbose().
action** parser |
Definition at line 4 of file mkpar.c.
Referenced by print_actions(), print_conflicts(), print_nulls(), and token_actions().
short* RRconflicts |
Definition at line 8 of file mkpar.c.
Referenced by log_conflicts(), print_state(), and remove_conflicts().
|
static |
Definition at line 15 of file mkpar.c.
Referenced by remove_conflicts().
int RRtotal |
Definition at line 6 of file mkpar.c.
Referenced by make_parser(), remove_conflicts(), total_conflicts(), and verbose().
short* rules_used |
Definition at line 10 of file mkpar.c.
Referenced by log_unused(), and unused_rules().
short* SRconflicts |
Definition at line 7 of file mkpar.c.
Referenced by log_conflicts(), print_state(), and remove_conflicts().
|
static |
Definition at line 14 of file mkpar.c.
Referenced by remove_conflicts().
int SRtotal |
Definition at line 5 of file mkpar.c.
Referenced by make_parser(), remove_conflicts(), total_conflicts(), and verbose().