COMPUTER SCIENCE AND ENGINEERING
COMPILER DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Parsing
|
|
Analysing
|
|
Recognizing
|
|
Tokenizing
|
Detailed explanation-1: -Explanation: Parsing is a process of finding a parse tree for a string of tokens.
Detailed explanation-2: -When the parser starts constructing the parse tree from the start symbol and then tries to transform the start symbol to the input, it is called top-down parsing.
Detailed explanation-3: -Syntax analysis is the second phase of compilation process. It takes tokens as input and generates a parse tree as output.
Detailed explanation-4: -The parse tree is constructed by using the pre-defined Grammar of the language and the input string. If the given input string can be produced with the help of the syntax tree (in the derivation process), the input string is found to be in the correct syntax. if not, the error is reported by the syntax analyzer.