Flex, version 2.5.23
A fast scanner generator
Edition 2.5.23, 21 October 2002
Vern Paxson
W. L. Estes
John Millaway
Copyright
Reporting Bugs
Introduction
Some Simple Examples
Format of the Input File
Format of the Definitions Section
Format of the Rules Section
Format of the User Code Section
Comments in the Input
Patterns
How the Input Is Matched
Actions
The Generated Scanner
Start Conditions
Multiple Input Buffers
End-of-File Rules
Miscellaneous Macros
Values Available To the User
Interfacing with Yacc
Scanner Options
Options for Specifing Filenames
Options Affecting Scanner Behavior
Code-Level And API Options
Options for Scanner Speed and Size
Debugging Options
Miscellaneous Options
Performance Considerations
Generating C++ Scanners
Reentrant C Scanners
Uses for Reentrant Scanners
An Overview of the Reentrant API
Reentrant Example
The Reentrant API in Detail
Declaring a Scanner As Reentrant
The Extra Argument
Global Variables Replaced By Macros
Init and Destroy Functions
Accessing Variables with Reentrant Scanners
Extra Data
About yyscan_t
Functions and Macros Available in Reentrant C Scanners
Incompatibilities with Lex and Posix
Memory Management
The Default Memory Management
Overriding The Default Memory Management
A Note About yytext And Memory
Serialized Tables
Creating Serialized Tables
Loading and Unloading Serialized Tables
Tables File Format
Diagnostics
Limitations
Additional Reading
FAQ
When was flex born?
How do I expand \ escape sequences in C-style quoted strings?
Why do flex scanners call fileno if it is not ANSI compatible?
Does flex support recursive pattern definitions?
How do I skip huge chunks of input (tens of megabytes) while using flex?
Flex is not matching my patterns in the same order that I defined them.
My actions are executing out of order or sometimes not at all.
How can I have multiple input sources feed into the same scanner at the same time?
Can I build nested parsers that work with the same input file?
How can I match text only at the end of a file?
How can I make REJECT cascade across start condition boundaries?
Why can't I use fast or full tables with interactive mode?
How much faster is -F or -f than -C?
If I have a simple grammar can't I just parse it with flex?
Why doesn't yyrestart() set the start state back to INITIAL?
How can I match C-style comments?
The '.' isn't working the way I expected.
Can I get the flex manual in another format?
Does there exist a "faster" NDFA->DFA algorithm?
How does flex compile the DFA so quickly?
How can I use more than 8192 rules?
How do I abandon a file in the middle of a scan and switch to a new file?
How do I execute code only during initialization (only before the first scan)?
How do I execute code at termination?
Where else can I find help?
Can I include comments in the "rules" section of the file?
I get an error about undefined yywrap().
How can I change the matching pattern at run time?
How can I expand macros in the input?
How can I build a two-pass scanner?
How do I match any string not matched in the preceding rules?
I am trying to port code from AT&T lex that uses yysptr and yysbuf.
Is there a way to make flex treat NULL like a regular character?
Whenever flex can not match the input it says "flex scanner jammed".
Why doesn't flex have non-greedy operators like perl does?
Memory leak - 16386 bytes allocated by malloc.
How do I track the byte offset for lseek()?
How do I use my own I/O classes in a C++ scanner?
How do I skip as many chars as possible?
unnamed-faq-33
unnamed-faq-42
unnamed-faq-43
unnamed-faq-44
unnamed-faq-45
unnamed-faq-46
unnamed-faq-47
unnamed-faq-48
unnamed-faq-49
unnamed-faq-50
unnamed-faq-51
unnamed-faq-52
unnamed-faq-53
unnamed-faq-54
unnamed-faq-55
unnamed-faq-56
unnamed-faq-57
unnamed-faq-58
unnamed-faq-59
unnamed-faq-60
unnamed-faq-61
unnamed-faq-62
unnamed-faq-63
unnamed-faq-64
unnamed-faq-65
unnamed-faq-66
unnamed-faq-67
unnamed-faq-68
unnamed-faq-69
unnamed-faq-70
unnamed-faq-71
unnamed-faq-72
unnamed-faq-73
unnamed-faq-74
unnamed-faq-75
unnamed-faq-76
unnamed-faq-77
unnamed-faq-78
unnamed-faq-79
unnamed-faq-80
unnamed-faq-81
unnamed-faq-82
unnamed-faq-83
unnamed-faq-84
unnamed-faq-85
unnamed-faq-86
unnamed-faq-87
unnamed-faq-88
unnamed-faq-90
unnamed-faq-91
unnamed-faq-92
unnamed-faq-93
unnamed-faq-94
unnamed-faq-95
unnamed-faq-96
unnamed-faq-97
unnamed-faq-98
unnamed-faq-99
unnamed-faq-100
unnamed-faq-101
Appendices
Makefiles and Flex
C Scanners with Bison Parsers
Indices
Concept Index
Index of Functions and Macros
Index of Variables
Index of Data Types
Index of Hooks
Index of Scanner Options
This document was generated on 9 November 2002 using
texi2html
1.56k.