Discussion
In a hand written scanner, a retract or unget operation is needed when
Answer: B
Correct answer: a character was read that belongs to the next lexeme rather than this
The scanner often knows a lexeme has ended only by reading the character after it - the digits of a number end at the first non-digit. That character belongs to the next lexeme, so it must be pushed back for the next call to read. This is why one character of lookahead, and a way of retracting it, is part of every scanner.
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