Discussion
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.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development