This is Unofficial EPICS BASE Doxygen Site
antelope.c File Reference
#include <signal.h>
#include "defs.h"
#include "epicsTempFile.c"
+ Include dependency graph for antelope.c:

Go to the source code of this file.

Functions

void done (int k)
 
char * allocate (unsigned int n)
 
int main (int argc, char *argv[])
 

Variables

char dflag
 
char lflag
 
char rflag
 
char tflag
 
char vflag
 
char * symbol_prefix
 
char * file_prefix = "y"
 
char * myname = "yacc"
 
char * temp_form = "yacc.XXXXXXX"
 
int lineno
 
int outline
 
char * code_file_name
 
char * defines_file_name
 
char * input_file_name = ""
 
char * output_file_name
 
char * verbose_file_name
 
FILE * action_file
 
FILE * code_file
 
FILE * defines_file
 
FILE * input_file
 
FILE * output_file
 
FILE * text_file
 
FILE * union_file
 
FILE * verbose_file
 
int nitems
 
int nrules
 
int nsyms
 
int ntokens
 
int nvars
 
int start_symbol
 
char ** symbol_name
 
short * symbol_value
 
short * symbol_prec
 
char * symbol_assoc
 
short * ritem
 
short * rlhs
 
short * rrhs
 
short * rprec
 
char * rassoc
 
short ** derives
 
char * nullable
 

Function Documentation

char* allocate ( unsigned int  n)

Definition at line 230 of file antelope.c.

231 {
232  char *p;
233 
234  p = NULL;
235  if (n)
236  {
237  p = CALLOC(1, n);
238  if (!p) no_space();
239  }
240  return (p);
241 }
#define NULL
Definition: catime.c:38
#define CALLOC(k, n)
Definition: defs.h:109
void no_space(void) NORETURN
Definition: error.c:23
void done ( int  k)

Definition at line 77 of file antelope.c.

78 {
79  if (action_file) { fclose(action_file); }
80  if (text_file) { fclose(text_file); }
81  if (union_file) { fclose(union_file); }
82  exit(k);
83 }
FILE * union_file
Definition: antelope.c:50
FILE * text_file
Definition: antelope.c:48
FILE * action_file
Definition: antelope.c:42
int main ( int  argc,
char *  argv[] 
)

Definition at line 341 of file antelope.c.

342 {
343  set_signals();
344  getargs(argc, argv);
345  open_files();
346  reader();
347  lr0();
348  lalr();
349  make_parser();
350  verbose();
351  output();
352  done(0);
353  /*NOTREACHED*/
354 }
void output(void)
Definition: output.c:51
void lr0(void)
Definition: lr0.c:608
void make_parser(void)
Definition: mkpar.c:37
void reader(void)
Definition: reader.c:1791
void done(int k)
Definition: antelope.c:77
void verbose(void)
Definition: verbose.c:27
void lalr(void)
Definition: lalr.c:60

Variable Documentation

FILE* action_file

Definition at line 42 of file antelope.c.

FILE* code_file

Definition at line 44 of file antelope.c.

char* code_file_name

Definition at line 36 of file antelope.c.

FILE* defines_file

Definition at line 45 of file antelope.c.

char* defines_file_name

Definition at line 37 of file antelope.c.

short** derives

Definition at line 72 of file antelope.c.

char dflag

Definition at line 22 of file antelope.c.

char* file_prefix = "y"

Definition at line 29 of file antelope.c.

FILE* input_file

Definition at line 46 of file antelope.c.

char* input_file_name = ""

Definition at line 38 of file antelope.c.

char lflag

Definition at line 23 of file antelope.c.

int lineno

Definition at line 33 of file antelope.c.

char* myname = "yacc"

Definition at line 30 of file antelope.c.

int nitems

Definition at line 55 of file antelope.c.

int nrules

Definition at line 56 of file antelope.c.

int nsyms

Definition at line 57 of file antelope.c.

int ntokens

Definition at line 58 of file antelope.c.

char* nullable

Definition at line 73 of file antelope.c.

int nvars

Definition at line 59 of file antelope.c.

int outline

Definition at line 34 of file antelope.c.

FILE* output_file

Definition at line 47 of file antelope.c.

char* output_file_name

Definition at line 39 of file antelope.c.

char* rassoc

Definition at line 71 of file antelope.c.

char rflag

Definition at line 24 of file antelope.c.

short* ritem

Definition at line 67 of file antelope.c.

short* rlhs

Definition at line 68 of file antelope.c.

short* rprec

Definition at line 70 of file antelope.c.

short* rrhs

Definition at line 69 of file antelope.c.

int start_symbol

Definition at line 61 of file antelope.c.

char* symbol_assoc

Definition at line 65 of file antelope.c.

char** symbol_name

Definition at line 62 of file antelope.c.

short* symbol_prec

Definition at line 64 of file antelope.c.

char* symbol_prefix

Definition at line 28 of file antelope.c.

short* symbol_value

Definition at line 63 of file antelope.c.

char* temp_form = "yacc.XXXXXXX"

Definition at line 31 of file antelope.c.

FILE* text_file

Definition at line 48 of file antelope.c.

char tflag

Definition at line 25 of file antelope.c.

FILE* union_file

Definition at line 50 of file antelope.c.

FILE* verbose_file

Definition at line 53 of file antelope.c.

char* verbose_file_name

Definition at line 40 of file antelope.c.

char vflag

Definition at line 26 of file antelope.c.