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 generator — 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…
- A.
ANTLR is an LL-family parser generator, and YACC is an LALR(1) parser generator
- B.
YACC is an LL-family parser generator, and ANTLR is an LALR(1) parser generator
- C.
Both ANTLR and YACC are LL-family parser generators
- 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.