August 2000
Intermediate to advanced
816 pages
29h 45m
English
yacc
yacc [options] file
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.
Prepend prefix, instead of y, to the output file.
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.)
Compile runtime debugging code.
Generate y.output, a file containing diagnostics and notes about the parsing tables.
Read now
Unlock full access