COMPILER DESIGN

SYNTAX ANALYSIS

ROLE OF THE PARSER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
____ is associating the attributes with the grammar symbols.
A
rotation
B
translation
C
transformation
D
evolving
Explanation: 

Detailed explanation-1: -Formally, attributes are values (of any type) that are associated with grammar symbols.

Detailed explanation-2: -Attributes are related to the grammar symbol that are the labels of the parse tree node. In other terms, attributes are associated information with language construct by attaching them to grammar symbols representing that construct.

Detailed explanation-3: -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.

There is 1 question to complete.