home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam    


/usr/ccs/bin/yacc [options ] file

Given a file containing a context-free LALR(1) grammar, convert it to tables for subsequent parsing and send output to y.tab.c . This command name stands for y et a nother c ompiler-c ompiler. See also lex and lex & yacc , which is listed in the Bibliography.


-b prefix

Use prefix instead of y for the generated filenames. Solaris only.


Generate y.tab.h , producing #define statements that relate yacc 's token codes to the token names declared by the user.


Exclude #line constructs from code produced in y.tab.c . (Use after debugging is complete.)

-p prefix

Use prefix instead of yy for all external names in the generated parser. Solaris only.

-P parser

Use parser instead of /usr/ccs/bin/yaccpar . Solaris only.

-Q c

Place version information about yacc in y.tab.c (if c = y ) or suppress information (if c = n , the default).


Compile runtime debugging code by default.


Generate y.output , a file containing diagnostics and notes about the parsing tables.


Print the version of yacc on standard error.

Previous: Reference: xgettext UNIX in a Nutshell: System V Edition Next: Reference: zcat
Reference: xgettext Book Index Reference: zcat

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System