This is Unofficial EPICS BASE Doxygen Site
verbose.c File Reference
#include "defs.h"
+ Include dependency graph for verbose.c:

Go to the source code of this file.

Functions

void verbose (void)
 

Function Documentation

void verbose ( void  )

Definition at line 27 of file verbose.c.

28 {
29  int i;
30 
31  if (!vflag) return;
32 
33  null_rules = (short *) MALLOC(nrules*sizeof(short));
34  if (null_rules == 0) no_space();
35  fprintf(verbose_file, "\f\n");
36  for (i = 0; i < nstates; i++)
37  print_state(i);
38  FREE(null_rules);
39 
40  if (nunused)
41  log_unused();
42  if (SRtotal || RRtotal)
43  log_conflicts();
44 
45  fprintf(verbose_file, "\n\n%d terminals, %d nonterminals\n", ntokens, nvars);
46  fprintf(verbose_file, "%d grammar rules, %d states\n", nrules - 2, nstates);
47 }
FILE * verbose_file
Definition: antelope.c:53
short nunused
Definition: mkpar.c:19
#define MALLOC(n)
Definition: defs.h:111
int i
Definition: scan.c:967
int nstates
Definition: lr0.c:16
int nrules
Definition: antelope.c:56
int nvars
Definition: antelope.c:59
int RRtotal
Definition: mkpar.c:14
#define FREE(x)
Definition: defs.h:110
char vflag
Definition: antelope.c:26
int ntokens
Definition: antelope.c:58
void no_space(void) NORETURN
Definition: error.c:23
int SRtotal
Definition: mkpar.c:13