16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

yacc<br />

Options<br />

–b file_prefix<br />

Uses file_prefix instead of y as the prefix for all output filenames. For<br />

example, yacc would name the parsing table file_prefix.tab.c rather than<br />

y.tab.c.<br />

–D file.h<br />

Generates the file file.h, which contains the constant definition statements<br />

for token names. This lets other modules of a multimodule program access<br />

these symbolic names. This is the same as –d, except that the user<br />

specifies the include filename.<br />

–d Generates the file y.tab.h, which contains the constant definition statements<br />

for token names. This lets other modules of a multimodule program access<br />

these symbolic names. This is the same as –D, except that the user does<br />

not specify the header filename.<br />

–h Displays a brief list of the options and quits.<br />

–l Disables the generation of #line statements in the parser output file, which<br />

are used to produce correct line numbers in compiler error messages from<br />

gram.y.<br />

–m Displays memory usage, timing, and table size statistics on the standard<br />

output.<br />

–o file.c<br />

Places the generated parser tables into file.c instead of the default y.tab.c.<br />

–P yyparse.c<br />

Indicates that the C parser template is found in the file yyparse.c. If you do<br />

not specify this option, this parser template is located in /etc/yyparse.c.<br />

–p prefix<br />

By default, yacc prefixes all variables and defined parameters in the<br />

generated parser code with the two letters yy (or YY). In order to have more<br />

than one yacc-generated parser in a single program, each parser must<br />

have unique variable names. –p uses the string prefix to replace the yy<br />

prefix in variable names. prefix should be entirely in lowercase because<br />

yacc uses an uppercase version of the string to replace all YY variables. We<br />

recommend a short prefix (such as zz) because some C compilers have<br />

name length restrictions for identifiers. You can also set this identifier with a<br />

%prefix directive in the grammar file.<br />

–q Disables the printing of warning messages.<br />

–t Enables debugging code in the generated parser. yacc does not normally<br />

compile this code because it is under the control of the preprocessor<br />

symbol YYDEBUG.<br />

This option is therefore equivalent to either setting YYDEBUG on the C<br />

compiler command line or specifying #define YYDEBUG statement in the<br />

first section of the grammar.<br />

–V stats<br />

Writes a verbose description of the parsing tables and any possible conflicts<br />

to the file stats.<br />

This is the same as -v except that the user specifies the filename.<br />

–v writes a verbose description of the parsing tables and any possible conflicts<br />

to the file y.output.<br />

820 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!