The answer is c .
The use of syntax analyser is used to create parse Tree. But along with Grammar as input to Syntax Analyser we add even semantic rules which form the basis of Syntax Directed Translation That help us in Evaluation of Expression .Remember that
Syntax Directed Translation is used in following cases
- Conversion of infix to Postfix
- Calculation of infix expression
- For creating a Acyclic graph
- Type Checking
- Conversion of Binary number to Decimal
- Counting the numbers of bits (0 or 1 ) in a binary number
- Creation of syntax tree
- To generate Intermediate code
- Storing the data into Symbol table