Discussion
A Lex specification is divided into
Answer: D
Correct answer: a declarations section, a rules section and a user code section
The three sections are separated by lines containing %%. The declarations hold regular definitions and any C declarations needed; the rules pair each pattern with the action to run when it matches; and the user code section is copied verbatim into the generated file, and is where supporting functions go.
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