Next: Description Prev: Synopsis Up: Top


   This manual describes `flex', a tool for generating programs that
perform pattern-matching on text.  The manual includes both tutorial
and reference sections:

     a brief overview of the tool

Some Simple Examples
Format Of The Input File
     the extended regular expressions used by flex

How The Input Is Matched
     the rules for determining what has been matched

     how to specify what to do when a pattern is matched

The Generated Scanner
     details regarding the scanner that flex produces; how to control
     the input source

Start Conditions
     introducing context into your scanners, and managing

Multiple Input Buffers
     how to manipulate multiple input sources; how to scan from strings
     instead of files

End-of-file Rules
     special rules for matching the end of the input

Miscellaneous Macros
     a summary of macros available to the actions

Values Available To The User
     a summary of values available to the actions

Interfacing With Yacc
     connecting flex scanners together with yacc parsers

     flex command-line options, and the "%option" directive

Performance Considerations
     how to make your scanner go as fast as possible

Generating C++ Scanners
     the (experimental) facility for generating C++ scanner classes

Incompatibilities With Lex And POSIX
     how flex differs from AT&T lex and the POSIX lex standard

     those error messages produced by flex (or scanners it generates)
     whose meanings might not be apparent

     files used by flex

Deficiencies / Bugs
     known problems with flex

See Also
     other documentation, related tools

     includes contact information

automatically generated by info version 1.5

Dirfile and infopages generated Sat Dec 3 02:07:54 2005