Berkeley YACC  1993-03-03
Berkeley's version of Yet Another Compiler Compiler
 All Data Structures Files Functions Variables Typedefs Macros Groups
skeleton.c File Reference
#include "defs.h"
+ Include dependency graph for skeleton.c:

Go to the source code of this file.

Functions

 write_section (section)
 

Variables

char * banner []
 
char * tables []
 
char * header []
 
char * body []
 
char * trailer []
 

Function Documentation

write_section ( section  )

Definition at line 287 of file skeleton.c.

References code_file, and outline.

Referenced by output(), and reader().

289 {
290  register int c;
291  register int i;
292  register char *s;
293  register FILE *f;
294 
295  f = code_file;
296  for (i = 0; s = section[i]; ++i)
297  {
298  ++outline;
299  while (c = *s)
300  {
301  putc(c, f);
302  ++s;
303  }
304  putc('\n', f);
305  }
306 }
FILE * code_file
Definition: main.c:29
int outline
Definition: main.c:16

+ Here is the caller graph for this function:

Variable Documentation

char* banner[]
Initial value:
=
{
"#ifndef lint",
"static char yysccsid[] = \"@(#)yaccpar 1.9 (Berkeley) 02/21/93\";",
"#endif",
"#define YYBYACC 1",
"#define YYMAJOR 1",
"#define YYMINOR 9",
"#define yyclearin (yychar=(-1))",
"#define yyerrok (yyerrflag=0)",
"#define YYRECOVERING (yyerrflag!=0)",
0
}

Definition at line 15 of file skeleton.c.

Referenced by reader().

char* body[]

Definition at line 77 of file skeleton.c.

Referenced by output().

char* header[]
Initial value:
=
{
"#ifdef YYSTACKSIZE",
"#undef YYMAXDEPTH",
"#define YYMAXDEPTH YYSTACKSIZE",
"#else",
"#ifdef YYMAXDEPTH",
"#define YYSTACKSIZE YYMAXDEPTH",
"#else",
"#define YYSTACKSIZE 500",
"#define YYMAXDEPTH 500",
"#endif",
"#endif",
"int yydebug;",
"int yynerrs;",
"int yyerrflag;",
"int yychar;",
"short *yyssp;",
"YYSTYPE *yyvsp;",
"YYSTYPE yyval;",
"YYSTYPE yylval;",
"short yyss[YYSTACKSIZE];",
"YYSTYPE yyvs[YYSTACKSIZE];",
"#define yystacksize YYSTACKSIZE",
0
}

Definition at line 49 of file skeleton.c.

Referenced by output().

char* tables[]
Initial value:
=
{
"extern short yylhs[];",
"extern short yylen[];",
"extern short yydefred[];",
"extern short yydgoto[];",
"extern short yysindex[];",
"extern short yyrindex[];",
"extern short yygindex[];",
"extern short yytable[];",
"extern short yycheck[];",
"#if YYDEBUG",
"extern char *yyname[];",
"extern char *yyrule[];",
"#endif",
0
}

Definition at line 30 of file skeleton.c.

Referenced by output().

char* trailer[]

Definition at line 225 of file skeleton.c.

Referenced by output().