Which of the following tools is known as the parser generator?
B
Correct answer
Explanation
Yacc (Yet Another Compiler Compiler) is a parser generator that creates parsers from grammar specifications. It works with Lex to build complete compiler front-ends. Lex handles lexical analysis while Yacc handles syntax analysis according to context-free grammars. TeX is typesetting software and Emacs is a text editor.