INTERMEDIATE CODE GENERATION
SYNTAX TREES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
when the expression sum=3+2 is tokenized then what is the token category of 3
|
Identifier
|
|
Assignment operator
|
|
Integer integral
|
|
Addition operator
|
Explanation:
Detailed explanation-1: -When expression sum=3+2 is tokenized then what is the token category of 3? Sum “Identifier” = “Assignment operator” 3 “Integer literal” + “Addition operator” 2 “Integer literal”; “End of statement". 3.
Detailed explanation-2: -Two important common lexical categories are white space and comments.
Detailed explanation-3: -The SA groups the tokens together into syntactic structure called as expression. Expression may further be combined to form statements. The syntactic structure can be regarded as a tree whose leaves are the token called as parse trees.
There is 1 question to complete.