⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 yacc.1

📁 UNIX v6源代码 这几乎是最经典的unix版本 unix操作系统设计和莱昂氏unix源代码分析都是用的该版
💻 1
字号:
.th YACC I 11/25/74.sh NAMEyacc \*- yet another compiler-compiler.sh SYNOPSIS.bd yacc[.bd \*-vor][ grammar ].sh DESCRIPTION.it Yaccconverts a context-free grammar into a set oftables for a simple automaton which executes an LR(1) parsingalgorithm.The grammar may be ambiguous;specified precedence rules are used to break ambiguities..s3The output is.it y.tab.c,which must be compiled by the C compilerand loaded with any other routinesrequired (perhaps a lexical analyzer) and the Yacc library:.s3	cc y.tab.c other.o \*-ly.s3If the.bd \*-vflag is given, the file.it y.outputis prepared, which contains a description of the parsing tablesand a report onconflicts generated by ambiguities in the grammar..s3The.bd \*-oflag calls an optimizer for the tables;the optimized tables, with parser included, appear on file.it y.tab.c.s3The.bd \*-rflag causes Yacc to accept grammars with Ratfor actions,and produce Ratfor output on.it y.tab.r;.bd \*-rimplies the.bd \*-oflag.Typical usage is then.s3	rc y.tab.r other.o.s3.sh "SEE ALSO"``LR Parsing'', by A. V. Aho and S. C. Johnson,Computing Surveys, June, 1974.``The YACC Compiler-compiler'', internal memorandum..sh AUTHORS. C. Johnson.sh FILESy.output.bry.tab.c.bry.tab.r			when ratfor output is obtained.bryacc.tmp		when optimizer is called.br/lib/liby.a		runtime library for compiler.br/usr/yacc/fpar.r	ratfor parser.br/usr/yacc/opar.c	parser for optimized tables.br/usr/yacc/yopti		optimizer postpass.sh DIAGNOSTICSThe number of reduce-reduce and shift-reduce conflictsis reported on the standard output;a more detailed report isfound in the.it y.outputfile..sh BUGSBecause file names are fixed, at most one Yaccprocess can be active in a given directory ata time.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -