Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which of the following is a Parser generating tool ?

  • A.vi
  • B.ls
  • C.lex
  • D.yacc

Answer: D

The parser generating tool is yacc.

yacc (Yet Another Compiler-Compiler) takes a grammar specification with actions and generates an LALR parser in C. It is usually used together with lex.

lex generates lexical analysers (scanners), not parsers. vi is a text editor and ls is the Unix command that lists directory contents.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.