Name
yacc
Synopsis
yacc [options] file
Description
Given a file containing context-free grammar, convert file into tables for subsequent parsing and send output to y.tab.c. This command name stands for yet another compiler-compiler. See also flex, bison, and lex & yacc by John Levine, Tony Mason, and Doug Brown.
Options
- -b prefix
Prepend prefix, instead of y, to the output file.
- -d
Generate y.tab.h, producing #define statements that relate yacc’s token codes to the token names declared by the user.
- -l
Exclude #line constructs from code produced in y.tab.c. (Use after debugging is complete.)
- -t
Compile runtime debugging code.
- -v
Generate y.output, a file containing diagnostics and notes about the parsing tables.
Get Linux in a Nutshell, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.