• Oct 17, 2025 lex and yacc lab viva questions output? Lex generates a C program that performs lexical analysis based on patterns defined in its input rules. The output is a scanner function that reads input and produces tokens for the parser. What is the role of Yacc in the context of syntax analysis? Yac By Pink Kertzmann