mkpar.c File Reference

#include "defs.h"

Include dependency graph for mkpar.c:

Go to the source code of this file.

Functions

actionparse_actions ()
actionget_shifts ()
actionadd_reductions ()
actionadd_reduce ()
 make_parser ()
actionparse_actions (int stateno)
actionget_shifts (int stateno)
actionadd_reductions (int stateno, action *actions)
actionadd_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


Function Documentation

action* add_reduce action actions,
int  ruleno,
int  symbol
 

Definition at line 113 of file mkpar.c.

References next, and SHIFT.

action* add_reduce  ) 
 

Referenced by add_reductions().

action* add_reductions int  stateno,
action actions
 

Definition at line 87 of file mkpar.c.

References add_reduce(), BIT, i, j, LA, LAruleno, lookaheads, m, n, ntokens, tokensetsize, and WORDSIZE.

action* add_reductions  ) 
 

Referenced by parse_actions().

defreds  ) 
 

Definition at line 326 of file mkpar.c.

References defred, i, 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, i, p, ritem, 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  ) 
 

Definition at line 348 of file mkpar.c.

References FREE, free_action_row(), i, nstates, and parser.

Referenced by output().

action* get_shifts int  stateno  ) 
 

Definition at line 52 of file mkpar.c.

References accessing_symbol, action::action_code, action::assoc, i, ISTOKEN, k, NEW, action::next, action::number, action::prec, SHIFT, shift_table, sp, action::symbol, symbol_assoc, symbol_prec, and to_state.

action* get_shifts  ) 
 

Referenced by parse_actions().

make_parser  ) 
 

Definition at line 23 of file mkpar.c.

References defreds(), find_final_state(), i, NEW2, nstates, parse_actions(), parser, remove_conflicts(), RRtotal, SRtotal, total_conflicts(), and unused_rules().

Referenced by main().

action* parse_actions int  stateno  ) 
 

Definition at line 40 of file mkpar.c.

References add_reductions(), and get_shifts().

action* parse_actions  ) 
 

Referenced by make_parser().

remove_conflicts  ) 
 

Definition at line 202 of file mkpar.c.

References NEW2, nstates, p, parser, RRconflicts, RRcount, RRtotal, SRconflicts, SRcount, and SRtotal.

Referenced by make_parser().

int sole_reduction int  stateno  ) 
 

Definition at line 298 of file mkpar.c.

References count, if(), p, parser, REDUCE, return(), and SHIFT.

Referenced by defreds().

total_conflicts  ) 
 

Definition at line 277 of file mkpar.c.

References fprintf(), myname, RRtotal, SRtotal, and stderr.

Referenced by make_parser().

unused_rules  ) 
 

Definition at line 170 of file mkpar.c.

References i, MALLOC, no_space(), nrules, nstates, p, parser, REDUCE, and rules_used.

Referenced by make_parser().


Variable Documentation

short* defred
 

Definition at line 9 of file mkpar.c.

Referenced by defreds(), output_yydefred(), and print_actions().

short final_state
 

Definition at line 12 of file mkpar.c.

Referenced by find_final_state(), output_debug(), and print_actions().

short nunused
 

Definition at line 11 of file mkpar.c.

Referenced by verbose().

action** parser
 

Definition at line 4 of file mkpar.c.

Referenced by free_parser(), make_parser(), print_actions(), print_conflicts(), print_nulls(), remove_conflicts(), sole_reduction(), token_actions(), and unused_rules().

short* RRconflicts
 

Definition at line 8 of file mkpar.c.

Referenced by log_conflicts(), print_state(), and remove_conflicts().

int RRcount [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().

int SRcount [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().


Generated on Fri Apr 14 22:59:56 2006 for minix by  doxygen 1.4.6