📄 new_features
字号:
This version of Berkeley Yacc has been extensively reorganized andcontains many new features. It is an amalgam of three earlier versionsof Berkeley Yacc. It is largely untested, so expect it to contain bugs.When bugs are found report them to corbett@berkeley.edu. Pleaseinclude small examples if possible. Despite my pleas not to be told of undocumented features of AT&T Yacc,I have received unsolicited descriptions of such features. Telling me ofsuch features places the public-domain status of Berkeley Yacc at risk.Please do not send me descriptions of undocumented features. On theother hand, I would be very interested in learning of documentedfeatures I have not implemented. The -l and -t options have been implemented. The -l option tellsYacc not to include #line directives in the code it produces. The -toption causes debugging code to be included in the compiled parser. The code for error recovery has been changed to implement the samealgorithm as AT&T Yacc. There will still be differences in the wayerror recovery works because AT&T Yacc uses more default reductionsthan Berekeley Yacc. The environment variable TMPDIR determines the directory wheretemporary files will be created. If TMPDIR is defined, temporary fileswill be created in the directory whose pathname is the value of TMPDIR.By default, temporary files are created in /tmp. The keywords are now case-insensitive. For example, %nonassoc,%NONASSOC, %NonAssoc, and %nOnAsSoC are all equivalent. Commas and semicolons that are not part of C code are treated ascommentary. Line-end comments, as in BCPL, are permitted. Line-end commentsbegin with // and end at the next end-of-line. Line-end comments arepermitted in C code; they are converted to C comments on output. The form of y.output files has been changed to look more likethose produced by AT&T Yacc. A new kind of declaration has been added. The form of the declarationis %ident stringwhere string is a sequence of characters begining with a double quoteand ending with either a double quote or the next end-of-line, whichevercomes first. The declaration will cause a #ident directive to be writtennear the start of the output file. If a parser has been compiled with debugging code, that code can beenabled by setting an environment variable. If the environment variableYYDEBUG is set to 0, debugging output is suppressed. If it is set to 1,debugging output is written to standard output.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -