Question discussion

Which of the following tools is used to generate a parser (syntax analyser) automatically from the specification of a grammar?

2589Medium DSSSB TGT Computer Science 0 replies

Which of the following tools is used to generate a parser (syntax analyser) automatically from the specification of a grammar?

  • AYacc
  • BMake
  • CLex
  • DGdb
Correct answer: A

Explanation

Yacc (or Bison) generates an LALR parser from grammar rules, while Lex (or Flex) generates a lexical analyser from regular expressions.

Discussion 0

Nobody has replied yet. Start the discussion!