The task of the syntax analyser is to
Answer: A
Correct answer: decide whether the token stream fits the rules the language lays down
The parser takes the token stream from the scanner and determines whether it forms a sentence of the language, building a parse tree or its equivalent as it goes. Grouping characters into lexemes is the scanner’s job, type compatibility belongs to semantic analysis, and instruction selection to the back end.
Please log in or register to report this question.