Discussion
The chief practical advantage of a generated scanner over a hand written one is
Answer: D
Correct answer: the specification is short, declarative and easy to change
A Lex specification states what the tokens look like and leaves the construction of the automaton to the tool, so it is a fraction of the length of the equivalent code and can be changed by editing one pattern. A carefully hand-written scanner can be faster, so speed is not the argument; maintainability is.
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