ssb
来自「莱昂氏UNIX源代码分析UNIXv6src.tar.gz」· 代码 · 共 44 行
TXT
44 行
.SHAppendix B: Use of Yacc on Unix.PPSuppose that the Yacc specification is on a file calledyfile.If the actions are in C, Yacc is invoked by.DSyacc yfile.DEThe output appears on file y.tab.c To compile the parser and load it withthe Yacc library, use the command.DScc y.tab.c \-ly.DEIf Yacc is invoked with the option \-v:.DSyacc \-v yfile.DEa verbose description of the parser is produced on file y.output.The C user should consult section6C for more information about the run time environment..PPIf the actions are in Ratfor,the user should invoke Yacc with the option \-r:.DSyacc \-r yfile.DEThe Ratfor output appears on file y.tab.r It may be compiled by.DSrc \-2 y.tab.r.DENote that when Yacc is used to produce Ratforprograms, there is no need to load these programs with any library..PPIf the \-v action is also invoked:.DSyacc \-rv yfile.DEa verbose description of the parser is produced on file y.output.The Ratfor user should consult section 6R for more information aboutthe run time environment.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?