COMPUTER PROGRAMMING FUNDAMENTALS
PROGRAMMING LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Binding
|
|
Naming Variables
|
|
Constant
|
|
Lifetime
|
Detailed explanation-1: -Attribute grammar is a special form of context-free grammar where some additional information (attributes) are appended to one or more of its non-terminals in order to provide context-sensitive information. Each attribute has well-defined domain of values, such as integer, float, character, string, and expressions.
Detailed explanation-2: -An attribute grammar is a formal way to supplement a formal grammar with semantic information processing. Semantic information is stored in attributes associated with terminal and nonterminal symbols of the grammar.
Detailed explanation-3: -Order of evaluation of attributes determined for trees of a given attribute grammar: It is basically determined by the requirement on demand and dependency in the code, than order in which they are present.