|
About Us |
Search |
Contact Info |
Thegzip'ed,tar'ed file flexExamples.tar.gz contains:
Files Comments wc.flex A simple word count program (like wc). To build it, use 'make wc'.nums.h
nums.flex
nums-main.cxxA flex program that extracts strings that look like numbers from stdin. To build it,'make nums'. To run, try'./nums.exe <nums-lexer.c'.Note: The
fleximplementation is slightly more complicated than necessary to show off some features offlexthat might be useful to you.Note:
main()has been separated into another file in this example, to show how that's done. Part of how that's done is the two lines beginningexternin nums.h.