📄 bison.rnh
字号:
.!.! RUNOFF source file for BISON.HLP .!.! This is a RUNOFF input file which will produce a VMS help file.! for the VMS HELP library..!.! Eric Youngdale and Wilfred J. Hansen (wjh+@cmu.edu)..!.literal.end literal.no paging.no flags all.right margin 70.left margin 1.indent -11 BISON.skip The BISON command invokes the GNU BISON parser generator..skip.literal BISON file-spec.end literal.skip.indent -12 Parameters.skip file-spec.skipHere file-spec is the grammar file name, which usually ends in.y. The parser file's name is made by replacing the .ywith _tab.c. Thus, the command bison foo.y yieldsfoo_tab.c..skip.indent -12 Qualifiers.skip The following is the list of available qualifiers for BISON:.literal /DEBUG /DEFINES /FILE_PREFIX=prefix /FIXED_OUTFILES /NAME_PREFIX=prefix /NOLINES /NOPARSER /OUTPUT=outfilefile /RAW /TOKEN_TABLE /VERBOSE /VERSION /YACC.end literal.skip.indent -12 /DEBUG.skipOutput a definition of the macro YYDEBUG into the parser file,so that the debugging facilities are compiled..skip.indent -12 /DEFINES.skipWrite an extra output file containing macro definitions for the tokentype names defined in the grammar and the semantic value typeYYSTYPE, as well as a extern variable declarations..skipIf the parser output file is named "name.c" then this fileis named "name.h"..skipThis output file is essential if you wish to put the definition ofyylex in a separate source file, because yylex needs tobe able to refer to token type codes and the variableyylval..skip.indent -12 /FILE_PREFIX.skip.literal /FILIE_PREFIX=prefix.end literal.skip Specify a prefix to use for all Bison output file names. The names arechosen as if the input file were named prefix.c.skip.indent -12 /FIXED_OUTFILES.skipEquivalent to /OUTPUT=y_tab.c; the parser output file is calledy_tab.c, and the other outputs are called y.output andy_tab.h. The purpose of this switch is to imitate Yacc's outputfile name conventions. The /YACC qualifier is functionally equivalentto /FIXED_OUTFILES. The following command definition willwork as a substitute for Yacc:.literal$YACC:==BISON/FIXED_OUTFILES.end literal.skip.indent -12 /NAME_PREFIX.skip.literal /NAME_PREFIX=prefix.end literal.skipRename the external symbols used in the parser so that they start with"prefix" instead of "yy". The precise list of symbols renamedis yyparse, yylex, yyerror, yylval, yychar and yydebug.For example, if you use /NAME_PREFIX="c", the names become cparse,clex, and so on..skip.indent -12 /NOLINES.skipDon't put any "#line" preprocessor commands in the parser file.Ordinarily Bison puts them in the parser file so that the C compilerand debuggers will associate errors with your source file, thegrammar file. This option causes them to associate errors with theparser file, treating it an independent source file in its own right..skip.indent -12 /NOPARSER.skipDo not generate the parser code into the output; generate onlydeclarations. The generated name_tab.c file will have only constant declarations. In addition, a name.act file isgenerated containing a switch statement body containing all thetranslated actions. .skip.indent -12 /OUTPUT.skip.literal /OUTPUT=outfile.end literal.skipSpecify the name "outfile" for the parser file..skip.indent -12 /RAW.skipWhen this switch is specified, the .tab.h file defines the tokens tohave the bison token numbers rather than the yacc compatible numbers.To employ this switch you would have to have your own parser..skip.indent -12 /TOKEN_TABLE.skipThis switch causes the name_tab.c output to include a list of token names in order by their token numbers; this is defined in the array yytname. Also generated are #defines for YYNTOKENS, YYNNTS, YYNRULES,and YYNSTATES..skip.indent -12 /VERBOSE.skipWrite an extra output file containing verbose descriptions of theparser states and what is done for each type of look-ahead token inthat state..skipThis file also describes all the conflicts, both those resolved byoperator precedence and the unresolved ones..skipThe file's name is made by removing _tab.c or .c fromthe parser output file name, and adding .output instead..skipTherefore, if the input file is foo.y, then the parser file iscalled foo_tab.c by default. As a consequence, the verboseoutput file is called foo.output..skip.indent -12 /VERSION.skipPrint the version number of Bison..skip.indent -12 /YACC.skipSee /FIXED_OUTFILES..skip.indent -1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -