summaryrefslogtreecommitdiff
path: root/doc/flex.info
blob: 012bc8086373a7eebeff0f04d751280b0bdd6877 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
This is flex.info, produced by makeinfo version 4.3d from flex.texi.

INFO-DIR-SECTION Programming
START-INFO-DIR-ENTRY
* flex: (flex).      Fast lexical analyzer generator (lex replacement).
END-INFO-DIR-ENTRY


   The flex manual is placed under the same licensing conditions as the
rest of flex:

   Copyright (C) 1990, 1997 The Regents of the University of California.
All rights reserved.

   This code is derived from software contributed to Berkeley by Vern
Paxson.

   The United States Government has rights in this work pursuant to
contract no. DE-AC03-76SF00098 between the United States Department of
Energy and the University of California.

   Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

  1.  Redistributions of source code must retain the above copyright
     notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright
     notice, this list of conditions and the following disclaimer in the
     documentation and/or other materials provided with the
     distribution.
   Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

   THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Indirect:
flex.info-1: 1543
flex.info-2: 44188
flex.info-3: 94777
flex.info-4: 143377
flex.info-5: 193020
flex.info-6: 242671
flex.info-7: 279163

Tag Table:
(Indirect)
Node: Top1543
Node: Copyright7312
Node: Reporting Bugs8746
Node: Introduction9041
Node: Simple Examples9868
Node: Format13257
Node: Definitions Section13670
Ref: Definitions Section-Footnote-115928
Node: Rules Section15996
Node: User Code Section17149
Node: Comments in the Input17582
Node: Patterns18951
Ref: case and character ranges24209
Node: Matching26884
Node: Actions30169
Node: Generated Scanner39171
Node: Start Conditions44188
Node: Multiple Input Buffers54900
Ref: Scanning Strings61518
Node: EOF63134
Node: Misc Macros64729
Node: User Values67581
Node: Yacc69909
Node: Scanner Options70812
Node: Options for Specifing Filenames73572
Ref: option-header73785
Ref: option-outfile74497
Ref: option-stdout74822
Node: Options Affecting Scanner Behavior75804
Ref: option-case-insensitive76034
Ref: option-lex-compat76467
Ref: option-batch76999
Ref: option-interactive77523
Ref: option-7bit78877
Ref: option-8bit80181
Ref: option-default80593
Ref: option-always-interactive80657
Ref: option-posix81261
Ref: option-stack82408
Ref: option-stdinit82516
Ref: option-yylineno82994
Ref: option-yywrap83437
Node: Code-Level And API Options83705
Ref: option-ansi-definitions83922
Ref: option-ansi-prototypes84174
Ref: option-bison-bridge84421
Ref: option-bison-locations84760
Ref: option-noline85020
Ref: option-reentrant85534
Ref: option-c++86145
Ref: option-array86271
Ref: option-pointer86369
Ref: option-prefix86497
Ref: option-main88026
Ref: option-nounistd88210
Ref: option-yyclass88718
Node: Options for Scanner Speed and Size89198
Ref: option-align89737
Ref: option-ecs90238
Ref: option-meta-ecs91274
Ref: option-read91761
Ref: option-full93644
Ref: option-fast93839
Node: Debugging Options94777
Ref: option-backup94954
Ref: option-debug95499
Ref: option-perf-report96222
Ref: option-nodefault96848
Ref: option-trace97166
Ref: option-nowarn97457
Ref: option-verbose97525
Ref: option-warn97954
Node: Miscellaneous Options98173
Node: Performance98647
Node: Cxx108984
Node: Reentrant116582
Node: Reentrant Uses117256
Node: Reentrant Overview118857
Node: Reentrant Example119649
Node: Reentrant Detail120406
Node: Specify Reentrant120832
Node: Extra Reentrant Argument121468
Node: Global Replacement122709
Node: Init and Destroy Functions123927
Node: Accessor Methods126080
Node: Extra Data127413
Node: About yyscan_t129584
Node: Reentrant Functions129969
Ref: bison-functions131451
Node: Lex and Posix132192
Node: Memory Management139441
Ref: memory-management139581
Node: The Default Memory Management139812
Ref: The Default Memory Management-Footnote-1143224
Node: Overriding The Default Memory Management143377
Ref: Overriding The Default Memory Management-Footnote-1145815
Node: A Note About yytext And Memory145979
Node: Serialized Tables147205
Ref: serialization147343
Node: Creating Serialized Tables148111
Node: Loading and Unloading Serialized Tables149714
Node: Tables File Format151473
Node: Diagnostics158482
Node: Limitations161890
Node: Bibliography163835
Node: FAQ164505
Node: When was flex born?168543
Node: How do I expand \ escape sequences in C-style quoted strings?168915
Node: Why do flex scanners call fileno if it is not ANSI compatible?170198
Node: Does flex support recursive pattern definitions?170988
Node: How do I skip huge chunks of input (tens of megabytes) while using flex?171838
Node: Flex is not matching my patterns in the same order that I defined them.172308
Node: My actions are executing out of order or sometimes not at all.174057
Node: How can I have multiple input sources feed into the same scanner at the same time?174845
Node: Can I build nested parsers that work with the same input file?176836
Node: How can I match text only at the end of a file?177845
Node: How can I make REJECT cascade across start condition boundaries?178653
Node: Why cant I use fast or full tables with interactive mode?179672
Node: How much faster is -F or -f than -C?180934
Node: If I have a simple grammar cant I just parse it with flex?181249
Node: Why doesnt yyrestart() set the start state back to INITIAL?181732
Node: How can I match C-style comments?182361
Node: The period isnt working the way I expected.183176
Node: Can I get the flex manual in another format?184425
Node: Does there exist a "faster" NDFA->DFA algorithm?184916
Node: How does flex compile the DFA so quickly?185428
Node: How can I use more than 8192 rules?186398
Node: How do I abandon a file in the middle of a scan and switch to a new file?187812
Node: How do I execute code only during initialization (only before the first scan)?188368
Node: How do I execute code at termination?189130
Node: Where else can I find help?189459
Node: Can I include comments in the "rules" section of the file?189834
Node: I get an error about undefined yywrap().190216
Node: How can I change the matching pattern at run time?190696
Node: How can I expand macros in the input?191061
Node: How can I build a two-pass scanner?192102
Node: How do I match any string not matched in the preceding rules?193020
Node: I am trying to port code from AT&T lex that uses yysptr and yysbuf.193933
Node: Is there a way to make flex treat NULL like a regular character?194731
Node: Whenever flex can not match the input it says "flex scanner jammed".195255
Node: Why doesnt flex have non-greedy operators like perl does?195906
Node: Memory leak - 16386 bytes allocated by malloc.197261
Ref: faq-memory-leak197558
Node: How do I track the byte offset for lseek()?198529
Node: How do I use my own I/O classes in a C++ scanner?200040
Node: How do I skip as many chars as possible?200886
Node: deleteme00201966
Node: Are certain equivalent patterns faster than others?202412
Node: Is backing up a big deal?205901
Node: Can I fake multi-byte character support?207873
Node: deleteme01209350
Node: Can you discuss some flex internals?210475
Node: unput() messes up yy_at_bol212765
Node: The | operator is not doing what I want213903
Node: Why can't flex understand this variable trailing context pattern?215495
Node: The ^ operator isn't working216760
Node: Trailing context is getting confused with trailing optional patterns218031
Node: Is flex GNU or not?219300
Node: ERASEME53221014
Node: I need to scan if-then-else blocks and while loops221810
Node: ERASEME55223030
Node: ERASEME56224144
Node: ERASEME57225538
Node: Is there a repository for flex scanners?226572
Node: How can I conditionally compile or preprocess my flex input file?226890
Node: Where can I find grammars for lex and yacc?227366
Node: I get an end-of-buffer message for each character scanned.227716
Node: unnamed-faq-62228314
Node: unnamed-faq-63229363
Node: unnamed-faq-64230676
Node: unnamed-faq-65231678
Node: unnamed-faq-66232480
Node: unnamed-faq-67233611
Node: unnamed-faq-68234614
Node: unnamed-faq-69235772
Node: unnamed-faq-70236506
Node: unnamed-faq-71237283
Node: unnamed-faq-72238513
Node: unnamed-faq-73239582
Node: unnamed-faq-74240527
Node: unnamed-faq-75241498
Node: unnamed-faq-76242671
Node: unnamed-faq-77243393
Node: unnamed-faq-78244302
Node: unnamed-faq-79245316
Node: unnamed-faq-80247052
Node: unnamed-faq-81248396
Node: unnamed-faq-82251237
Node: unnamed-faq-83252220
Node: unnamed-faq-84254026
Node: unnamed-faq-85255145
Node: unnamed-faq-86256193
Node: unnamed-faq-87257167
Node: unnamed-faq-88257829
Node: unnamed-faq-90258686
Node: unnamed-faq-91259985
Node: unnamed-faq-92262469
Node: unnamed-faq-93262984
Node: unnamed-faq-94263927
Node: unnamed-faq-95265370
Node: unnamed-faq-96266904
Node: unnamed-faq-97267689
Node: unnamed-faq-98268372
Node: unnamed-faq-99269063
Node: unnamed-faq-100270023
Node: unnamed-faq-101270749
Node: Appendices271519
Node: Makefiles and Flex271686
Ref: Makefiles and Flex-Footnote-1274903
Ref: Makefiles and Flex-Footnote-2275020
Node: Bison Bridge275071
Ref: Bison Bridge-Footnote-1277745
Node: M4 Dependency277937
Ref: M4 Dependency-Footnote-1278853
Node: Indices278925
Node: Concept Index279163
Node: Index of Functions and Macros296037
Node: Index of Variables299256
Node: Index of Data Types300483
Node: Index of Hooks301087
Node: Index of Scanner Options301589

End Tag Table