SYNTAX ANALYSIS
ERROR RECOVERY IN SYNTAX ANALYSIS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
In parse tree the leaf node is labeled by ____
|
Epsilon (€)
|
|
Terminal
|
|
Non-Terminal
|
|
Start symbol
|
Explanation:
Detailed explanation-1: -the leaf nodes are the terminal symbols of G. the children of a node T (from left to right) correspond to the symbols on the right hand side of some production for T in G.
Detailed explanation-2: -Leaf Nodes are terminal (), and Interior nodes are variable (V).
Detailed explanation-3: -Terminals are generally represented by small case letters. Terminal symbols are components of the sentences generated using a grammar, for example, a, b, +, (, d . A non-terminal is a non-leaf node in a parse tree. Non-terminals are represented by upper case letters.
There is 1 question to complete.