Complete the code to identify the primary purpose of Yacc/Bison.
Yacc/Bison is a tool used to generate a [1] from a given grammar specification.
Yacc/Bison generates a parser that analyzes the structure of input based on grammar rules.
Complete the code to specify the input format Yacc/Bison expects.
Yacc/Bison takes a grammar written in a [1] notation to generate the parser.
Yacc/Bison uses context-free grammar notation to define the syntax rules for parsing.
Fix the error in the statement about Yacc/Bison output.
Yacc/Bison generates a [1] that directly executes the input program.Yacc/Bison generates a parser, which analyzes input structure but does not execute programs.
Fill both blanks to complete the description of Yacc/Bison components.
The [1] defines tokens, while the [2] defines grammar rules in Yacc/Bison.
The lexer (or scanner) identifies tokens, and the parser uses grammar rules to analyze token sequences.
Fill all three blanks to complete the Yacc/Bison workflow description.
First, [1] generates tokens from input. Then, [2] uses grammar to build a parse tree. Finally, [3] execute actions based on the parse tree.
The lexer creates tokens, the parser builds the parse tree, and semantic actions perform operations during parsing.
