Given a file containing context-free grammar, convert into tables for subsequent parsing while sending output to file.c. To a large extent, this utility is compatible with yacc, and is in fact named for it. All input files should use the suffix .y; output files will use the original prefix. All long options (those preceded by --) may instead be preceded by +.
Use prefix for all output files.
Generate file.h, producing #define statements that relate bison’s token codes to the token names declared by the user.
Use bison token numbers, not yacc-compatible translations, in file.h.
Include token names and values of YYNTOKENS, YYNNTS, YYNRULES, and YYNSTATES in file.c.
Exclude #line constructs from code produced in file.c. (Use after debugging is complete.)
Suppress parser code in output, allowing only declarations. Assemble all translations into a switch statement body and print it to file.act.
Output to file.
Substitute prefix for yy in all external symbols.
Compile runtime debugging code.
Verbose mode. Print diagnostics and notes about parsing tables to file.output.
Display version number.
Duplicate yacc’s conventions for naming output files.