MPE/iX Shell and Utilities Reference Manual, Vol 2

yacc(1) MPE/iX Shell and Utilities yacc(1)
–p prefix
prefixes all variables and defined parameters in the generated parser code with the
string prefix in place of the default yy (or YY). This allows you to have more than
one yacc-generated parser in a single program with each parser having unique vari-
able names. prefix should be entirely in lowercase because yacc uses an uppercase
version of the string to replace all YY variables. We recommend a short prefix (such
as zz) because some
C compilers have name length restrictions for identifiers. You
can also set this identifier with a %prefix directive in the grammar file.
–q disables the display of warning messages.
–S statesfile
writes a State Description to the file statesfile. This file is indexed by pointers in the
table yyStates, so that any state can be quickly read and displayed.
–s is similar to –S except that the State Description is always written to the file
states.out.
–t enables debugging code in the generated parser. yacc does not normally compile
this code because it is under the control of the preprocessor symbol YYDEBUG. This
option is therefore equivalent to either setting YYDEBUG on the
C compiler command
line or specifying #define YYDEBUG statement in the first section of the grammar.
–V stats
writes a verbose description of the parsing tables and any possible conflicts to the file
stats.
–v writes a verbose description of the parsing tables and any possible conflicts to the file
y.output. This is the same as –V except you do not specify the file name.
FILES
yacc uses the following files:
y.output default statistics file generated when you specify -v.
y.tab.c default file for the generated parser.
y.tab.h default header file generated when you specify –d.
/etc/yyparse.c
default parser template.
states.out default state description file generated when you specify –s.
Commands and Utilities 1-711