Discussion
Consider the reasons for separating lexical analysis from parsing.
1. it simplifies the design of both phases
2. it improves compiler efficiency through specialised techniques
3. it enhances the portability of the compiler across character sets
Answer: C
All three are the standard justifications given in the literature. Simplicity, efficiency and portability together outweigh the small cost of defining an interface between the two phases. The interface is a single function call, which is about as cheap as a boundary can be.
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