Which of the following statements about ANTLR and YACC is correct?

Which of the following statements about ANTLR and YACC is correct?

Answer: A. ANTLR is an LL-family parser generator, and YACC is an LALR(1) parser generatorCorrect answer: ANTLR is an LL-family parser generator, and YACC is an LALR(1) parser generator. ANTLR (ANother Tool for Language Recognition) is associated…

  1. A.

    ANTLR is an LL-family parser generator, and YACC is an LALR(1) parser generator

  2. B.

    YACC is an LL-family parser generator, and ANTLR is an LALR(1) parser generator

  3. C.

    Both ANTLR and YACC are LL-family parser generators

  4. D.

    Both ANTLR and YACC are LALR(1) parser generators

Attempted by 74 students.

Show answer & explanation

Correct answer: A

Correct answer: ANTLR is an LL-family parser generator, and YACC is an LALR(1) parser generator.

ANTLR (ANother Tool for Language Recognition) is associated with LL-family parsing; modern ANTLR uses adaptive LL(*) parsing. YACC (Yet Another Compiler-Compiler) generates LALR(1) parsers.

Therefore, the statement pairing ANTLR with LL-family parsing and YACC with LALR(1) parsing is correct.

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…