Multiple choice

Which of the following tools is known as the parser generator?

  1. Lex

  2. Yaac

  3. TeX

  4. Emacs

Reveal answer Fill a bubble to check yourself
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.