in Compiler Design edited by
597 views
0 votes
0 votes

Which of the following is the most general phase-structured grammar ?

  1. Regular
  2. Context-sensitive
  3. Context free
  4. Syntax tree
in Compiler Design edited by
597 views

1 Answer

1 vote
1 vote

 

Context-sensitive is most general phase-structured grammar.

A context-sensitive grammar (CSG) is a formal grammar in which the left-hand sides and right-hand sides of any production rules may be surrounded by a context of terminal and nonterminal symbols.

A context-sensitive user interface is one which can automatically choose from a multiplicity of options based on the current or previous state of the program operation. Context sensitivity is almost ubiquitous in current graphical user interfaces, usually in the form of context menus.

Option B

by

Related questions