% This LaTeX file generated by cxref
% cxref program (c) Andrew M. Bishop 1995,96,97.

\markboth{File parse-yy.h}{File parse-yy.h}
\section{File parse-yy.h}
\label{file_parse-yy.h}

{\bf RCS Header: /home/amb/cxref/RCS/parse-yy.h 1.9 1996/06/11 18:12:41 amb Exp }

\smallskip

  C Cross Referencing \& Documentation tool. Version 1.2.

  The function protypes that are missing from the lex and yacc output.

\medskip
\begin{cxreftabii}
Included in:\ & cxref.c & \cxreffile{cxref.c}\\
\ & func.c & \cxreffile{func.c}\\
\ & parse-lex.c & \cxreffile{parse-lex.c}\\
\ & parse-yacc.c & \cxreffile{parse-yacc.c}\\
\ & preproc.c & \cxreffile{preproc.c}\\
\ & type.c & \cxreffile{type.c}\\
\ & var.c & \cxreffile{var.c}\\
\end{cxreftabii}


\subsection*{Included Files}

\begin{cxreftabi}
{\stt \#include <stdio.h>} &\\
\end{cxreftabi}

\medskip
\begin{cxreftabi}
{\stt \#include <stdlib.h>} &\\
\end{cxreftabi}


\subsection*{Preprocessor definitions}

 To stop multiple inclusions. 

\smallskip
{\stt \#define PARSE\_YY\_H}

\medskip
 Debugging output or not?

  YYDEBUG=0 : No debugging at all, smaller, faster code.

  YYDEBUG=1 : Debugging output only when parsing fails.

  YYDEBUG=2 : Debugging output for each symbol from lex().

  YYDEBUG=3 : Full yacc debugging output, state transitions etc.

\smallskip
{\stt \#define YYDEBUG 0}

\medskip
 Semantic type is a char*

\smallskip
{\stt \#define YYSTYPE char}

\medskip
 use prototypes in function declarations 

\smallskip
{\stt \#define YY\_USE\_PROTOS}

\medskip
 the "const" storage-class-modifier is valid 

\smallskip
{\stt \#define YY\_USE\_CONST}

\medskip
 Needed in lex but does nothing. 

\smallskip
{\stt \#define yywrap}


\subsection{Variables}


\subsubsection{External Variables}

{\bf parse\_file}
\label{var_parse_file_parse-yy.h}

 The name of the current file. 

\smallskip
{\stt extern char* parse\_file}

\smallskip
\begin{cxreftabiii}
Defined in:& parse-lex.c & \ & \cxrefvar{parse_file}{parse-lex.c}\\
\end{cxreftabiii}

\medskip
{\bf parse\_line}
\label{var_parse_line_parse-yy.h}

 The current line number in the file. 

\smallskip
{\stt extern int parse\_line}

\smallskip
\begin{cxreftabiii}
Defined in:& parse-lex.c & \ & \cxrefvar{parse_line}{parse-lex.c}\\
\end{cxreftabiii}

\medskip
{\bf yylval}
\label{var_yylval_parse-yy.h}

 For communication between the lex and yacc code. 

\smallskip
{\stt extern char* yylval}

\smallskip
\begin{cxreftabiii}
Defined in:& parse-yacc.c & \ & \cxrefvar{yylval}{parse-yacc.c}\\
\end{cxreftabiii}

\medskip
{\bf yyin}
\label{var_yyin_parse-yy.h}

 For communication between the lex and yacc code. 

\smallskip
{\stt extern FILE* yyin}

\smallskip
\begin{cxreftabiii}
Defined in:& parse-lex.c & \ & \cxrefvar{yyin}{parse-lex.c}\\
\end{cxreftabiii}

