4.5: Construction of a Scanner
Read these slides.
Watch the rest of this lecture.
Read these notes. FLEX is a scanner generator. It produces a scanner, given a description of the patterns to be identified and actions to take for each token.
Read these slides.
Read section 2.9.1. Scanners are usually not written anew, but are generated by tools called scanner (or parser) generators.
Review this manual, which contains details on the Flex scanner generator. The link will take you to the introduction section of the manual. Use the links at the top of each page to navigate to the next page of the resource, reading up through section "24 Limitations". For further information, feel free to browse other parts of the manual, including the "Additional Readings" and "FAQ" sections.