File parse-yy.h

RCS Header: /home/amb/cxref/RCS/parse-yy.h 1.10 1999/06/16 18:51:45 amb Exp

C Cross Referencing & Documentation tool. Version 1.5a.
The function protypes that are missing from the lex and yacc output.

Included in: cxref.c
  func.c
  parse-lex.c
  parse-yacc.c
  preproc.c
  type.c
  var.c


Included Files


Preprocessor definitions

To stop multiple inclusions.

#define PARSE_YY_H

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.

#define YYDEBUG 1

Semantic type is a char*

#define YYSTYPE char

use prototypes in function declarations

#define YY_USE_PROTOS

the "const" storage-class-modifier is valid

#define YY_USE_CONST

Define verbose errors in Bison generated file

#define YYERROR_VERBOSE 1

This is needed in the Bison generated code.

#define xmalloc malloc

Print the semantic value

#define YYPRINT( file, type, value )

Needed in lex but does nothing.

#define yywrap


External Variables

yydebug
Turn the debugging output on and off.

extern int yydebug
Defined in: parse-yacc.c

parse_file
The name of the current file.

extern char* parse_file
Defined in: parse-lex.c

parse_line
The current line number in the file.

extern int parse_line
Defined in: parse-lex.c

yylval
For communication between the lex and yacc code.

extern char* yylval
Defined in: parse-yacc.c

yyin
For communication between the lex and yacc code.

extern FILE* yyin
Defined in: parse-lex.c