Discussion
A scanner generator such as Lex or Flex produces
Answer: C
Correct answer: a program that recognises the specified tokens in an input stream
Lex takes a specification of patterns with actions and emits source code for a scanner - typically a table-driven automaton together with the driver that runs it. The scanner it produces recognises the specified tokens and executes the corresponding action for each. Producing a parser is the job of a separate tool such as Yacc.
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