Flex support materials
Lex is the original lexical scanner developed by Lesk and Schmidt;
Paxson's improved version is flex.
The version available on our system is the Free
Software Foundation's flex. You can
get an excellent overview by typing "man flex" on our system.
You can also look at GNU's
online documentation for
flex.
You can access runnable versions of a couple of examples:
- a flex program to recognize and count the
number of characters and lines in the input file
- a flex program to recognize a set of
very simple Pascal constructs, which can be built upon for your
lexical analyzer, as well as
- the flex output generated from this
input file;
- A sample input file for the generated lexer;
- The output that the generated lexer, given
the input file, produces.