Discussion
If the scanner and the parser disagree about the set of token names
Answer: D
Correct answer: the compiler will not build, or will misinterpret the token stream
The token names are a contract between the two phases, usually held in a shared header that the parser generator produces and the scanner includes. If they disagree the build fails, or worse the numeric codes silently mismatch and the parser interprets one token as another. This is why the header is generated rather than written twice by hand.
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