[comp.os.minix] Yacc man page

mcm@maple.ucsb.edu (Marcelo Mourier) (08/02/90)

Hi everybody!

	A couple of months ago someone posted a modified version of Berkeley
Yacc that compiled under PC (ST?) Minix.  Here is its man page "a la Minix
style".  Add it to /usr/man/man1.

------------------------------- cut here ---------------------------------
# yacc
Command:	yacc - an LALR(1) parser generator
Syntax:		yacc [-dltv] [-b prefix] filename
Flags:		-b prefix	changes the prefix prepended to the output
			file names to the string denoted by 'prefix'.  The
			default prefix is the character 'y'.
		-d	causes the header file y.tab.h to be written.
		-l	tells yacc not to insert #line directives in the
			generated code.  However, the #line directives 
			specified by the user are retained.
		-t	changes the preprocessor directives generated by yacc
			so that debugging statements are incorporated in the
			compiled code.
		- v	causes a human-readable description of the generated
			parser to be written to the file y.output.
Examples:	yacc -d grammar		# create parser and write file y.tab.h

	Yacc reads the grammar specification in the file 'filename' and 
generates an LR(1) parser for it.  The parsers consist of a set of LALR(1)
parsing tables and a driver routine written in the C programming language.
Yacc normally writes the parse tables and the driver routine to the file
y.tab.c.  If the environment variable TMPDIR is set, yacc will use that
directory to create its temporary files.  If there are rules that are never
reduced, the number of such rules is reported on standard error.  If there
are any LALR(1) conflicts, the number of conflicts is reported on standard
error.
-------------------------------- cut here ------------------------------------

Marcelo (mcm@cs.ucsb.edu)