home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Tape Archive
(archive/tar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| tar archive
| default
| |
99%
| file
| tar archive (V7), file flex-2.5.2/, mode 755 , uid 2000 , gid 0 , size 0 , seconds 5750233235
| default
| |
98%
| file
| data
| default
| |
100%
| siegfried
| x-fmt/265 Tape Archive Format
| default
| |
100%
| lsar
| Tar
| default
| |
100%
| gt2
| Kopftext: 'flex-2.5.2/'
| default (weak)
| |
100%
| disktype
| Pre-POSIX tar archive
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 66 6c 65 78 2d 32 2e 35 | 2e 32 2f 00 00 00 00 00 |flex-2.5|.2/.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 32 30 |.... 7|55 . 20|
|00000070| 30 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |00 . | 0 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 35 37 35 30 32 33 33 | 0 | 5750233|
|00000090| 32 33 35 20 20 20 35 34 | 30 36 00 20 00 00 00 00 |235 54|06. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 66 6c 65 78 2d 32 2e 35 | 2e 32 2f 52 45 41 44 4d |flex-2.5|.2/READM|
|00000210| 45 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |E.......|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 34 | 34 34 20 00 20 20 32 30 |.... 4|44 . 20|
|00000270| 30 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |00 . | 0 . |
|00000280| 20 20 20 33 37 37 32 20 | 20 35 37 33 36 30 35 32 | 3772 | 5736052|
|00000290| 36 34 32 20 20 20 36 33 | 36 37 00 20 00 00 00 00 |642 63|67. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 54 68 69 73 20 69 73 20 | 72 65 6c 65 61 73 65 20 |This is |release |
|00000410| 32 2e 35 20 6f 66 20 66 | 6c 65 78 2e 20 20 53 65 |2.5 of f|lex. Se|
|00000420| 65 20 22 76 65 72 73 69 | 6f 6e 2e 68 22 20 66 6f |e "versi|on.h" fo|
|00000430| 72 20 74 68 65 20 65 78 | 61 63 74 20 70 61 74 63 |r the ex|act patc|
|00000440| 68 2d 6c 65 76 65 6c 2e | 0a 0a 53 65 65 20 74 68 |h-level.|..See th|
|00000450| 65 20 66 69 6c 65 20 22 | 4e 45 57 53 22 20 74 6f |e file "|NEWS" to|
|00000460| 20 66 69 6e 64 20 6f 75 | 74 20 77 68 61 74 20 69 | find ou|t what i|
|00000470| 73 20 6e 65 77 20 69 6e | 20 74 68 69 73 20 46 6c |s new in| this Fl|
|00000480| 65 78 20 72 65 6c 65 61 | 73 65 2e 0a 0a 52 65 61 |ex relea|se...Rea|
|00000490| 64 20 74 68 65 20 66 69 | 6c 65 20 22 49 4e 53 54 |d the fi|le "INST|
|000004a0| 41 4c 4c 22 20 66 6f 72 | 20 67 65 6e 65 72 61 6c |ALL" for| general|
|000004b0| 20 69 6e 73 74 61 6c 6c | 61 74 69 6f 6e 20 64 69 | install|ation di|
|000004c0| 72 65 63 74 69 76 65 73 | 2e 20 20 50 65 65 6b 20 |rectives|. Peek |
|000004d0| 6e 65 61 72 0a 74 68 65 | 20 62 65 67 69 6e 6e 69 |near.the| beginni|
|000004e0| 6e 67 20 6f 66 20 74 68 | 65 20 66 69 6c 65 20 22 |ng of th|e file "|
|000004f0| 4d 61 6b 65 66 69 6c 65 | 2e 69 6e 22 20 66 6f 72 |Makefile|.in" for|
|00000500| 20 73 70 65 63 69 61 6c | 20 44 45 46 53 20 76 61 | special| DEFS va|
|00000510| 6c 75 65 73 2e 20 20 4f | 6e 20 6d 6f 73 74 0a 73 |lues. O|n most.s|
|00000520| 79 73 74 65 6d 73 2c 20 | 79 6f 75 20 63 61 6e 20 |ystems, |you can |
|00000530| 6a 75 73 74 20 72 75 6e | 20 74 68 65 20 22 63 6f |just run| the "co|
|00000540| 6e 66 69 67 75 72 65 22 | 20 73 63 72 69 70 74 20 |nfigure"| script |
|00000550| 61 6e 64 20 74 79 70 65 | 20 22 6d 61 6b 65 22 20 |and type| "make" |
|00000560| 74 6f 20 62 75 69 6c 64 | 0a 66 6c 65 78 3b 20 74 |to build|.flex; t|
|00000570| 68 65 6e 20 22 6d 61 6b | 65 20 63 68 65 63 6b 22 |hen "mak|e check"|
|00000580| 20 74 6f 20 74 65 73 74 | 20 77 68 65 74 68 65 72 | to test| whether|
|00000590| 20 69 74 20 62 75 69 6c | 74 20 63 6f 72 72 65 63 | it buil|t correc|
|000005a0| 74 6c 79 3b 20 61 6e 64 | 20 69 66 20 69 74 20 64 |tly; and| if it d|
|000005b0| 69 64 2c 0a 74 68 65 6e | 20 22 6d 61 6b 65 20 69 |id,.then| "make i|
|000005c0| 6e 73 74 61 6c 6c 22 20 | 74 6f 20 69 6e 73 74 61 |nstall" |to insta|
|000005d0| 6c 6c 20 69 74 2e 0a 0a | 49 66 20 79 6f 75 27 72 |ll it...|If you'r|
|000005e0| 65 20 66 65 65 6c 69 6e | 67 20 61 64 76 65 6e 74 |e feelin|g advent|
|000005f0| 75 72 6f 75 73 2c 20 79 | 6f 75 20 63 61 6e 20 61 |urous, y|ou can a|
|00000600| 6c 73 6f 20 69 73 73 75 | 65 20 22 6d 61 6b 65 20 |lso issu|e "make |
|00000610| 62 69 67 63 68 65 63 6b | 22 20 28 62 65 0a 70 72 |bigcheck|" (be.pr|
|00000620| 65 70 61 72 65 64 20 74 | 6f 20 77 61 69 74 20 61 |epared t|o wait a|
|00000630| 20 77 68 69 6c 65 29 2e | 0a 0a 4e 6f 74 65 20 74 | while).|..Note t|
|00000640| 68 61 74 20 66 6c 65 78 | 20 69 73 20 64 69 73 74 |hat flex| is dist|
|00000650| 72 69 62 75 74 65 64 20 | 75 6e 64 65 72 20 61 20 |ributed |under a |
|00000660| 63 6f 70 79 72 69 67 68 | 74 20 76 65 72 79 20 73 |copyrigh|t very s|
|00000670| 69 6d 69 6c 61 72 20 74 | 6f 20 74 68 61 74 20 6f |imilar t|o that o|
|00000680| 66 0a 42 53 44 20 55 6e | 69 78 2c 20 61 6e 64 20 |f.BSD Un|ix, and |
|00000690| 6e 6f 74 20 75 6e 64 65 | 72 20 74 68 65 20 47 4e |not unde|r the GN|
|000006a0| 55 20 47 65 6e 65 72 61 | 6c 20 50 75 62 6c 69 63 |U Genera|l Public|
|000006b0| 20 4c 69 63 65 6e 73 65 | 20 28 47 50 4c 29 2c 20 | License| (GPL), |
|000006c0| 65 78 63 65 70 74 20 66 | 6f 72 0a 74 68 65 20 22 |except f|or.the "|
|000006d0| 63 6f 6e 66 69 67 75 72 | 65 22 20 73 63 72 69 70 |configur|e" scrip|
|000006e0| 74 2c 20 77 68 69 63 68 | 20 69 73 20 63 6f 76 65 |t, which| is cove|
|000006f0| 72 65 64 20 62 79 20 74 | 68 65 20 47 50 4c 2e 0a |red by t|he GPL..|
|00000700| 0a 4d 61 6e 79 20 74 68 | 61 6e 6b 73 20 74 6f 20 |.Many th|anks to |
|00000710| 74 68 65 20 32 2e 35 20 | 62 65 74 61 2d 74 65 73 |the 2.5 |beta-tes|
|00000720| 74 65 72 73 20 66 6f 72 | 20 66 69 6e 64 69 6e 67 |ters for| finding|
|00000730| 20 62 75 67 73 20 61 6e | 64 20 68 65 6c 70 69 6e | bugs an|d helpin|
|00000740| 67 20 74 65 73 74 20 61 | 6e 64 0a 69 6e 63 72 65 |g test a|nd.incre|
|00000750| 61 73 65 20 70 6f 72 74 | 61 62 69 6c 69 74 79 3a |ase port|ability:|
|00000760| 20 53 74 61 6e 20 41 64 | 65 72 6d 61 6e 6e 2c 20 | Stan Ad|ermann, |
|00000770| 53 63 6f 74 74 20 44 61 | 76 69 64 20 44 61 6e 69 |Scott Da|vid Dani|
|00000780| 65 6c 73 2c 20 43 68 61 | 72 6c 65 73 20 45 6c 6c |els, Cha|rles Ell|
|00000790| 69 6f 74 74 2c 0a 4a 6f | 65 20 47 61 79 64 61 2c |iott,.Jo|e Gayda,|
|000007a0| 20 43 68 72 69 73 20 4d | 65 69 65 72 2c 20 4a 61 | Chris M|eier, Ja|
|000007b0| 6d 65 73 20 4e 6f 72 64 | 62 79 2c 20 54 65 72 72 |mes Nord|by, Terr|
|000007c0| 65 6e 63 65 20 4f 27 4b | 61 6e 65 2c 20 4b 61 72 |ence O'K|ane, Kar|
|000007d0| 73 74 65 6e 20 50 61 68 | 6e 6b 65 2c 0a 46 72 61 |sten Pah|nke,.Fra|
|000007e0| 6e 63 6f 69 73 20 50 69 | 6e 61 72 64 2c 20 50 61 |ncois Pi|nard, Pa|
|000007f0| 74 20 52 61 6e 6b 69 6e | 2c 20 41 6e 64 72 65 61 |t Rankin|, Andrea|
|00000800| 73 20 53 63 68 65 72 65 | 72 2c 20 4d 61 72 63 20 |s Schere|r, Marc |
|00000810| 57 69 65 73 65 2c 20 4e | 61 74 68 61 6e 20 5a 65 |Wiese, N|athan Ze|
|00000820| 6c 6c 65 2e 0a 0a 50 6c | 65 61 73 65 20 73 65 6e |lle...Pl|ease sen|
|00000830| 64 20 62 75 67 20 72 65 | 70 6f 72 74 73 20 61 6e |d bug re|ports an|
|00000840| 64 20 66 65 65 64 62 61 | 63 6b 20 74 6f 3a 20 56 |d feedba|ck to: V|
|00000850| 65 72 6e 20 50 61 78 73 | 6f 6e 20 28 76 65 72 6e |ern Paxs|on (vern|
|00000860| 40 65 65 2e 6c 62 6c 2e | 67 6f 76 29 2e 0a 0a 0a |@ee.lbl.|gov)....|
|00000870| 54 68 65 20 66 6c 65 78 | 20 64 69 73 74 72 69 62 |The flex| distrib|
|00000880| 75 74 69 6f 6e 20 63 6f | 6e 73 69 73 74 73 20 6f |ution co|nsists o|
|00000890| 66 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |f the fo|llowing |
|000008a0| 66 69 6c 65 73 3a 0a 0a | 09 52 45 41 44 4d 45 09 |files:..|.README.|
|000008b0| 09 54 68 69 73 20 6d 65 | 73 73 61 67 65 0a 0a 09 |.This me|ssage...|
|000008c0| 4e 45 57 53 09 09 44 69 | 66 66 65 72 65 6e 63 65 |NEWS..Di|fference|
|000008d0| 73 20 62 65 74 77 65 65 | 6e 20 74 68 65 20 76 61 |s betwee|n the va|
|000008e0| 72 69 6f 75 73 20 72 65 | 6c 65 61 73 65 73 0a 0a |rious re|leases..|
|000008f0| 09 49 4e 53 54 41 4c 4c | 09 09 47 65 6e 65 72 61 |.INSTALL|..Genera|
|00000900| 6c 20 69 6e 73 74 61 6c | 6c 61 74 69 6f 6e 20 69 |l instal|lation i|
|00000910| 6e 66 6f 72 6d 61 74 69 | 6f 6e 0a 0a 09 43 4f 50 |nformati|on...COP|
|00000920| 59 49 4e 47 09 09 66 6c | 65 78 27 73 20 63 6f 70 |YING..fl|ex's cop|
|00000930| 79 72 69 67 68 74 0a 0a | 09 63 6f 6e 66 2e 69 6e |yright..|.conf.in|
|00000940| 2c 20 63 6f 6e 66 69 67 | 75 72 65 2e 69 6e 2c 20 |, config|ure.in, |
|00000950| 63 6f 6e 66 69 67 75 72 | 65 2c 20 4d 61 6b 65 66 |configur|e, Makef|
|00000960| 69 6c 65 2e 69 6e 2c 20 | 69 6e 73 74 61 6c 6c 2e |ile.in, |install.|
|00000970| 73 68 2c 0a 09 09 6d 6b | 69 6e 73 74 61 6c 6c 64 |sh,...mk|installd|
|00000980| 69 72 73 0a 09 09 09 65 | 6c 65 6d 65 6e 74 73 20 |irs....e|lements |
|00000990| 6f 66 20 74 68 65 20 22 | 61 75 74 6f 63 6f 6e 66 |of the "|autoconf|
|000009a0| 22 20 61 75 74 6f 2d 63 | 6f 6e 66 69 67 75 72 61 |" auto-c|onfigura|
|000009b0| 74 69 6f 6e 20 70 72 6f | 63 65 73 73 0a 0a 09 66 |tion pro|cess...f|
|000009c0| 6c 65 78 64 65 66 2e 68 | 2c 20 70 61 72 73 65 2e |lexdef.h|, parse.|
|000009d0| 79 2c 20 73 63 61 6e 2e | 6c 2c 20 63 63 6c 2e 63 |y, scan.|l, ccl.c|
|000009e0| 2c 20 64 66 61 2e 63 2c | 20 65 63 73 2e 63 2c 20 |, dfa.c,| ecs.c, |
|000009f0| 67 65 6e 2e 63 2c 20 6d | 61 69 6e 2e 63 2c 0a 09 |gen.c, m|ain.c,..|
|00000a00| 6d 69 73 63 2e 63 2c 20 | 6e 66 61 2e 63 2c 20 73 |misc.c, |nfa.c, s|
|00000a10| 79 6d 2e 63 2c 20 74 62 | 6c 63 6d 70 2e 63 2c 20 |ym.c, tb|lcmp.c, |
|00000a20| 79 79 6c 65 78 2e 63 09 | 20 0a 09 09 09 73 6f 75 |yylex.c.| ....sou|
|00000a30| 72 63 65 20 66 69 6c 65 | 73 0a 0a 09 76 65 72 73 |rce file|s...vers|
|00000a40| 69 6f 6e 2e 68 09 76 65 | 72 73 69 6f 6e 20 6f 66 |ion.h.ve|rsion of|
|00000a50| 20 74 68 69 73 20 66 6c | 65 78 20 72 65 6c 65 61 | this fl|ex relea|
|00000a60| 73 65 0a 0a 09 66 6c 65 | 78 2e 73 6b 6c 09 66 6c |se...fle|x.skl.fl|
|00000a70| 65 78 20 73 63 61 6e 6e | 65 72 20 73 6b 65 6c 65 |ex scann|er skele|
|00000a80| 74 6f 6e 0a 09 6d 6b 73 | 6b 65 6c 2e 73 68 09 73 |ton..mks|kel.sh.s|
|00000a90| 63 72 69 70 74 20 66 6f | 72 20 63 6f 6e 76 65 72 |cript fo|r conver|
|00000aa0| 74 69 6e 67 20 66 6c 65 | 78 2e 73 6b 6c 20 74 6f |ting fle|x.skl to|
|00000ab0| 20 43 20 73 6f 75 72 63 | 65 20 66 69 6c 65 20 73 | C sourc|e file s|
|00000ac0| 6b 65 6c 2e 63 0a 09 73 | 6b 65 6c 2e 63 09 09 70 |kel.c..s|kel.c..p|
|00000ad0| 72 65 2d 63 6f 6e 76 65 | 72 74 65 64 20 43 20 76 |re-conve|rted C v|
|00000ae0| 65 72 73 69 6f 6e 20 6f | 66 20 66 6c 65 78 2e 73 |ersion o|f flex.s|
|00000af0| 6b 6c 0a 0a 09 6c 69 62 | 6d 61 69 6e 2e 63 09 66 |kl...lib|main.c.f|
|00000b00| 6c 65 78 20 6c 69 62 72 | 61 72 79 20 28 2d 6c 66 |lex libr|ary (-lf|
|00000b10| 6c 29 20 73 6f 75 72 63 | 65 73 0a 09 6c 69 62 79 |l) sourc|es..liby|
|00000b20| 79 77 72 61 70 2e 63 0a | 0a 09 69 6e 69 74 73 63 |ywrap.c.|..initsc|
|00000b30| 61 6e 2e 63 09 70 72 65 | 2d 66 6c 65 78 27 64 20 |an.c.pre|-flex'd |
|00000b40| 76 65 72 73 69 6f 6e 20 | 6f 66 20 73 63 61 6e 2e |version |of scan.|
|00000b50| 6c 0a 0a 09 46 6c 65 78 | 4c 65 78 65 72 2e 68 09 |l...Flex|Lexer.h.|
|00000b60| 68 65 61 64 65 72 20 66 | 69 6c 65 20 66 6f 72 20 |header f|ile for |
|00000b70| 43 2b 2b 20 6c 65 78 65 | 72 20 63 6c 61 73 73 0a |C++ lexe|r class.|
|00000b80| 0a 09 66 6c 65 78 2e 31 | 09 09 75 73 65 72 20 64 |..flex.1|..user d|
|00000b90| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 0a 0a 09 4d |ocumenta|tion...M|
|00000ba0| 49 53 43 2f 09 09 61 20 | 64 69 72 65 63 74 6f 72 |ISC/..a |director|
|00000bb0| 79 20 63 6f 6e 74 61 69 | 6e 69 6e 67 20 6d 69 73 |y contai|ning mis|
|00000bc0| 63 65 6c 6c 61 6e 65 6f | 75 73 20 63 6f 6e 74 72 |cellaneo|us contr|
|00000bd0| 69 62 75 74 69 6f 6e 73 | 2e 0a 09 09 09 53 65 65 |ibutions|.....See|
|00000be0| 20 4d 49 53 43 2f 52 45 | 41 44 4d 45 20 66 6f 72 | MISC/RE|ADME for|
|00000bf0| 20 64 65 74 61 69 6c 73 | 2e 0a 6f 72 6b 6d 61 6e | details|..orkman|
|00000c00| 66 6c 65 78 2d 32 2e 35 | 2e 32 2f 4e 45 57 53 00 |flex-2.5|.2/NEWS.|
|00000c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 20 20 20 34 | 34 34 20 00 20 20 32 30 |.... 4|44 . 20|
|00000c70| 30 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |00 . | 0 . |
|00000c80| 20 31 33 30 35 37 35 20 | 20 35 37 34 37 30 30 34 | 130575 | 5747004|
|00000c90| 35 34 31 20 20 20 36 32 | 34 35 00 20 00 00 00 00 |541 62|45. ....|
|00000ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 43 68 61 6e 67 65 73 20 | 62 65 74 77 65 65 6e 20 |Changes |between |
|00000e10| 72 65 6c 65 61 73 65 20 | 32 2e 35 2e 32 20 28 32 |release |2.5.2 (2|
|00000e20| 35 41 70 72 39 35 29 20 | 61 6e 64 20 72 65 6c 65 |5Apr95) |and rele|
|00000e30| 61 73 65 20 32 2e 35 2e | 31 3a 0a 0a 09 2d 20 54 |ase 2.5.|1:...- T|
|00000e40| 68 65 20 2d 2d 70 72 65 | 66 69 78 20 63 6f 6e 66 |he --pre|fix conf|
|00000e50| 69 67 75 72 61 74 69 6f | 6e 20 6f 70 74 69 6f 6e |iguratio|n option|
|00000e60| 20 6e 6f 77 20 77 6f 72 | 6b 73 2e 0a 0a 09 2d 20 | now wor|ks....- |
|00000e70| 41 20 62 75 67 20 74 68 | 61 74 20 63 6f 6d 70 6c |A bug th|at compl|
|00000e80| 65 74 65 6c 79 20 62 72 | 6f 6b 65 20 74 68 65 20 |etely br|oke the |
|00000e90| 22 2d 43 66 22 20 74 61 | 62 6c 65 20 63 6f 6d 70 |"-Cf" ta|ble comp|
|00000ea0| 72 65 73 73 69 6f 6e 0a | 09 20 20 6f 70 74 69 6f |ression.|. optio|
|00000eb0| 6e 20 68 61 73 20 62 65 | 65 6e 20 66 69 78 65 64 |n has be|en fixed|
|00000ec0| 2e 0a 0a 09 2d 20 41 20 | 6d 61 6a 6f 72 20 68 65 |....- A |major he|
|00000ed0| 61 64 61 63 68 65 20 69 | 6e 76 6f 6c 76 69 6e 67 |adache i|nvolving|
|00000ee0| 20 22 63 6f 6e 73 74 22 | 20 64 65 63 6c 61 72 61 | "const"| declara|
|00000ef0| 74 6f 72 73 20 61 6e 64 | 20 53 6f 6c 61 72 69 73 |tors and| Solaris|
|00000f00| 0a 09 20 20 73 79 73 74 | 65 6d 73 20 68 61 73 20 |.. syst|ems has |
|00000f10| 62 65 65 6e 20 66 69 78 | 65 64 2e 0a 0a 09 2d 20 |been fix|ed....- |
|00000f20| 41 6e 20 6f 63 74 61 6c | 20 65 73 63 61 70 65 20 |An octal| escape |
|00000f30| 73 65 71 75 65 6e 63 65 | 20 69 6e 20 61 20 66 6c |sequence| in a fl|
|00000f40| 65 78 20 72 65 67 75 6c | 61 72 20 65 78 70 72 65 |ex regul|ar expre|
|00000f50| 73 73 69 6f 6e 20 6d 75 | 73 74 0a 09 20 20 6e 6f |ssion mu|st.. no|
|00000f60| 77 20 63 6f 6e 74 61 69 | 6e 20 6f 6e 6c 79 20 74 |w contai|n only t|
|00000f70| 68 65 20 64 69 67 69 74 | 73 20 30 2d 37 2e 0a 0a |he digit|s 0-7...|
|00000f80| 09 2d 20 59 6f 75 20 63 | 61 6e 20 6e 6f 77 20 75 |.- You c|an now u|
|00000f90| 73 65 20 22 2d 2d 22 20 | 6f 6e 20 74 68 65 20 66 |se "--" |on the f|
|00000fa0| 6c 65 78 20 63 6f 6d 6d | 61 6e 64 20 6c 69 6e 65 |lex comm|and line|
|00000fb0| 20 74 6f 20 6d 61 72 6b | 20 74 68 65 0a 09 20 20 | to mark| the.. |
|00000fc0| 65 6e 64 20 6f 66 20 66 | 6c 65 78 20 6f 70 74 69 |end of f|lex opti|
|00000fd0| 6f 6e 73 2e 0a 0a 09 2d | 20 59 6f 75 20 63 61 6e |ons....-| You can|
|00000fe0| 20 6e 6f 77 20 73 70 65 | 63 69 66 79 20 74 68 65 | now spe|cify the|
|00000ff0| 20 66 69 6c 65 6e 61 6d | 65 20 27 2d 27 20 61 73 | filenam|e '-' as|
|00001000| 20 61 20 73 79 6e 6f 6e | 79 6d 20 66 6f 72 20 73 | a synon|ym for s|
|00001010| 74 64 69 6e 2e 0a 0a 09 | 2d 20 42 79 20 64 65 66 |tdin....|- By def|
|00001020| 61 75 6c 74 2c 20 74 68 | 65 20 73 63 61 6e 6e 65 |ault, th|e scanne|
|00001030| 72 73 20 67 65 6e 65 72 | 61 74 65 64 20 62 79 20 |rs gener|ated by |
|00001040| 66 6c 65 78 20 6e 6f 20 | 6c 6f 6e 67 65 72 0a 09 |flex no |longer..|
|00001050| 20 20 73 74 61 74 69 63 | 61 6c 6c 79 20 69 6e 69 | static|ally ini|
|00001060| 74 69 61 6c 69 7a 65 20 | 79 79 69 6e 20 61 6e 64 |tialize |yyin and|
|00001070| 20 79 79 6f 75 74 20 74 | 6f 20 73 74 64 69 6e 20 | yyout t|o stdin |
|00001080| 61 6e 64 20 73 74 64 6f | 75 74 2e 0a 09 20 20 54 |and stdo|ut... T|
|00001090| 68 69 73 20 63 68 61 6e | 67 65 20 69 73 20 6e 65 |his chan|ge is ne|
|000010a0| 63 65 73 73 61 72 79 20 | 62 65 63 61 75 73 65 20 |cessary |because |
|000010b0| 69 6e 20 73 6f 6d 65 20 | 41 4e 53 49 20 65 6e 76 |in some |ANSI env|
|000010c0| 69 72 6f 6e 6d 65 6e 74 | 73 2c 0a 09 20 20 73 74 |ironment|s,.. st|
|000010d0| 64 69 6e 20 61 6e 64 20 | 73 74 64 6f 75 74 20 61 |din and |stdout a|
|000010e0| 72 65 20 6e 6f 74 20 63 | 6f 6d 70 69 6c 65 2d 74 |re not c|ompile-t|
|000010f0| 69 6d 65 20 63 6f 6e 73 | 74 61 6e 74 2e 20 20 59 |ime cons|tant. Y|
|00001100| 6f 75 20 63 61 6e 0a 09 | 20 20 66 6f 72 63 65 20 |ou can..| force |
|00001110| 74 68 65 20 69 6e 69 74 | 69 61 6c 69 7a 61 74 69 |the init|ializati|
|00001120| 6f 6e 20 75 73 69 6e 67 | 20 22 25 6f 70 74 69 6f |on using| "%optio|
|00001130| 6e 20 73 74 64 69 6e 69 | 74 22 20 69 6e 20 74 68 |n stdini|t" in th|
|00001140| 65 20 66 69 72 73 74 0a | 09 20 20 73 65 63 74 69 |e first.|. secti|
|00001150| 6f 6e 20 6f 66 20 79 6f | 75 72 20 66 6c 65 78 20 |on of yo|ur flex |
|00001160| 69 6e 70 75 74 2e 0a 0a | 09 2d 20 22 25 6f 70 74 |input...|.- "%opt|
|00001170| 69 6f 6e 20 6e 6f 75 6e | 70 75 74 22 20 6e 6f 77 |ion noun|put" now|
|00001180| 20 63 6f 72 72 65 63 74 | 6c 79 20 6f 6d 69 74 73 | correct|ly omits|
|00001190| 20 74 68 65 20 75 6e 70 | 75 74 28 29 20 72 6f 75 | the unp|ut() rou|
|000011a0| 74 69 6e 65 0a 09 20 20 | 66 72 6f 6d 20 74 68 65 |tine.. |from the|
|000011b0| 20 6f 75 74 70 75 74 2e | 0a 0a 09 2d 20 22 6d 61 | output.|...- "ma|
|000011c0| 6b 65 20 63 6c 65 61 6e | 22 20 6e 6f 77 20 72 65 |ke clean|" now re|
|000011d0| 6d 6f 76 65 73 20 63 6f | 6e 66 69 67 2e 6c 6f 67 |moves co|nfig.log|
|000011e0| 2c 20 63 6f 6e 66 69 67 | 2e 63 61 63 68 65 2c 20 |, config|.cache, |
|000011f0| 61 6e 64 20 74 68 65 0a | 09 20 20 66 6c 65 78 20 |and the.|. flex |
|00001200| 62 69 6e 61 72 79 2e 20 | 20 54 68 65 20 66 61 63 |binary. | The fac|
|00001210| 74 20 74 68 61 74 20 69 | 74 20 72 65 6d 6f 76 65 |t that i|t remove|
|00001220| 73 20 74 68 65 20 66 6c | 65 78 20 62 69 6e 61 72 |s the fl|ex binar|
|00001230| 79 20 6d 65 61 6e 73 0a | 09 20 20 79 6f 75 20 73 |y means.|. you s|
|00001240| 68 6f 75 6c 64 20 74 61 | 6b 65 20 63 61 72 65 20 |hould ta|ke care |
|00001250| 69 66 20 6d 61 6b 69 6e | 67 20 63 68 61 6e 67 65 |if makin|g change|
|00001260| 73 20 74 6f 20 73 63 61 | 6e 2e 6c 2c 20 74 6f 20 |s to sca|n.l, to |
|00001270| 6d 61 6b 65 0a 09 20 20 | 73 75 72 65 20 79 6f 75 |make.. |sure you|
|00001280| 20 64 6f 6e 27 74 20 77 | 69 6e 64 20 75 70 20 69 | don't w|ind up i|
|00001290| 6e 20 61 20 62 6f 6f 74 | 73 74 72 61 70 20 70 72 |n a boot|strap pr|
|000012a0| 6f 62 6c 65 6d 2e 0a 0a | 09 2d 20 49 6e 20 67 65 |oblem...|.- In ge|
|000012b0| 6e 65 72 61 6c 2c 20 74 | 68 65 20 4d 61 6b 65 66 |neral, t|he Makef|
|000012c0| 69 6c 65 20 68 61 73 20 | 62 65 65 6e 20 72 65 77 |ile has |been rew|
|000012d0| 6f 72 6b 65 64 20 73 6f | 6d 65 77 68 61 74 20 28 |orked so|mewhat (|
|000012e0| 74 68 61 6e 6b 73 0a 09 | 20 20 74 6f 20 46 72 61 |thanks..| to Fra|
|000012f0| 6e 63 6f 69 73 20 50 69 | 6e 61 72 64 29 20 66 6f |ncois Pi|nard) fo|
|00001300| 72 20 61 64 64 65 64 20 | 66 6c 65 78 69 62 69 6c |r added |flexibil|
|00001310| 69 74 79 20 2d 20 6d 6f | 72 65 20 63 68 61 6e 67 |ity - mo|re chang|
|00001320| 65 73 20 77 69 6c 6c 0a | 09 20 20 66 6f 6c 6c 6f |es will.|. follo|
|00001330| 77 20 69 6e 20 73 75 62 | 73 65 71 75 65 6e 74 20 |w in sub|sequent |
|00001340| 72 65 6c 65 61 73 65 73 | 2e 0a 0a 09 2d 20 54 68 |releases|....- Th|
|00001350| 65 20 2e 74 65 78 69 20 | 61 6e 64 20 2e 69 6e 66 |e .texi |and .inf|
|00001360| 6f 20 66 69 6c 65 73 20 | 69 6e 20 4d 49 53 43 2f |o files |in MISC/|
|00001370| 74 65 78 69 6e 66 6f 2f | 20 68 61 76 65 20 62 65 |texinfo/| have be|
|00001380| 65 6e 20 75 70 64 61 74 | 65 64 2c 0a 09 20 20 74 |en updat|ed,.. t|
|00001390| 68 61 6e 6b 73 20 61 6c | 73 6f 20 74 6f 20 46 72 |hanks al|so to Fr|
|000013a0| 61 6e 63 6f 69 73 20 50 | 69 6e 61 72 64 2e 0a 0a |ancois P|inard...|
|000013b0| 09 2d 20 54 68 65 20 46 | 6c 65 78 4c 65 78 65 72 |.- The F|lexLexer|
|000013c0| 3a 3a 79 79 6c 65 78 28 | 69 73 74 72 65 61 6d 2a |::yylex(|istream*|
|000013d0| 20 6e 65 77 5f 69 6e 2c | 20 6f 73 74 72 65 61 6d | new_in,| ostream|
|000013e0| 2a 20 6e 65 77 5f 6f 75 | 74 29 20 6d 65 74 68 6f |* new_ou|t) metho|
|000013f0| 64 0a 09 20 20 6e 6f 77 | 20 64 6f 65 73 20 6e 6f |d.. now| does no|
|00001400| 74 20 68 61 76 65 20 61 | 20 64 65 66 61 75 6c 74 |t have a| default|
|00001410| 20 66 6f 72 20 74 68 65 | 20 66 69 72 73 74 20 61 | for the| first a|
|00001420| 72 67 75 6d 65 6e 74 2c | 20 74 6f 20 64 69 73 61 |rgument,| to disa|
|00001430| 6d 62 69 67 75 61 74 65 | 0a 09 20 20 69 74 20 66 |mbiguate|.. it f|
|00001440| 72 6f 6d 20 46 6c 65 78 | 4c 65 78 65 72 3a 3a 79 |rom Flex|Lexer::y|
|00001450| 79 6c 65 78 28 29 2e 0a | 0a 09 2d 20 41 20 62 75 |ylex()..|..- A bu|
|00001460| 67 20 69 6e 20 64 65 73 | 74 72 75 63 74 69 6e 67 |g in des|tructing|
|00001470| 20 61 20 46 6c 65 78 4c | 65 78 65 72 20 6f 62 6a | a FlexL|exer obj|
|00001480| 65 63 74 20 62 65 66 6f | 72 65 20 64 6f 69 6e 67 |ect befo|re doing|
|00001490| 20 61 6e 79 20 73 63 61 | 6e 6e 69 6e 67 0a 09 20 | any sca|nning.. |
|000014a0| 20 77 69 74 68 20 69 74 | 20 68 61 73 20 62 65 65 | with it| has bee|
|000014b0| 6e 20 66 69 78 65 64 2e | 0a 0a 09 2d 20 41 20 70 |n fixed.|...- A p|
|000014c0| 72 6f 62 6c 65 6d 20 77 | 69 74 68 20 69 6e 63 6c |roblem w|ith incl|
|000014d0| 75 64 69 6e 67 20 46 6c | 65 78 4c 65 78 65 72 2e |uding Fl|exLexer.|
|000014e0| 68 20 6d 75 6c 74 69 70 | 6c 65 20 74 69 6d 65 73 |h multip|le times|
|000014f0| 20 68 61 73 20 62 65 65 | 6e 20 66 69 78 65 64 2e | has bee|n fixed.|
|00001500| 0a 0a 09 2d 20 54 68 65 | 20 61 6c 6c 6f 63 61 28 |...- The| alloca(|
|00001510| 29 20 63 68 75 64 20 6e | 65 63 65 73 73 61 72 79 |) chud n|ecessary|
|00001520| 20 74 6f 20 61 63 63 6f | 6d 6d 6f 64 61 74 65 20 | to acco|mmodate |
|00001530| 62 69 73 6f 6e 20 68 61 | 73 20 67 72 6f 77 6e 0a |bison ha|s grown.|
|00001540| 09 20 20 65 76 65 6e 20 | 75 67 6c 69 65 72 2c 20 |. even |uglier, |
|00001550| 62 75 74 20 68 6f 70 65 | 66 75 6c 6c 79 20 6d 6f |but hope|fully mo|
|00001560| 72 65 20 63 6f 72 72 65 | 63 74 2e 0a 0a 09 2d 20 |re corre|ct....- |
|00001570| 41 20 70 6f 72 74 61 62 | 69 6c 69 74 79 20 74 77 |A portab|ility tw|
|00001580| 65 61 6b 20 68 61 73 20 | 62 65 65 6e 20 61 64 64 |eak has |been add|
|00001590| 65 64 20 74 6f 20 61 63 | 63 6f 6d 6d 6f 64 61 74 |ed to ac|commodat|
|000015a0| 65 20 63 6f 6d 70 69 6c | 65 72 73 20 74 68 61 74 |e compil|ers that|
|000015b0| 0a 09 20 20 75 73 65 20 | 63 68 61 72 2a 20 67 65 |.. use |char* ge|
|000015c0| 6e 65 72 69 63 20 70 6f | 69 6e 74 65 72 73 2e 0a |neric po|inters..|
|000015d0| 0a 09 2d 20 45 42 43 44 | 49 43 20 63 6f 6e 74 61 |..- EBCD|IC conta|
|000015e0| 63 74 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 69 |ct infor|mation i|
|000015f0| 6e 20 74 68 65 20 66 69 | 6c 65 20 4d 49 53 43 2f |n the fi|le MISC/|
|00001600| 45 42 43 44 49 43 20 68 | 61 73 20 62 65 65 6e 20 |EBCDIC h|as been |
|00001610| 75 70 64 61 74 65 64 2e | 0a 0a 09 2d 20 41 6e 20 |updated.|...- An |
|00001620| 4f 53 2f 32 20 4d 61 6b | 65 66 69 6c 65 20 61 6e |OS/2 Mak|efile an|
|00001630| 64 20 63 6f 6e 66 69 67 | 2e 68 20 66 6f 72 20 66 |d config|.h for f|
|00001640| 6c 65 78 20 32 2e 35 20 | 69 73 20 6e 6f 77 20 61 |lex 2.5 |is now a|
|00001650| 76 61 69 6c 61 62 6c 65 | 20 69 6e 0a 09 20 20 4d |vailable| in.. M|
|00001660| 49 53 43 2f 4f 53 32 2f | 2c 20 63 6f 6e 74 72 69 |ISC/OS2/|, contri|
|00001670| 62 75 74 65 64 20 62 79 | 20 4b 61 69 20 55 77 65 |buted by| Kai Uwe|
|00001680| 20 52 6f 6d 6d 65 6c 2e | 0a 0a 09 2d 20 54 68 65 | Rommel.|...- The|
|00001690| 20 64 65 73 63 72 69 70 | 2e 6d 6d 73 20 66 69 6c | descrip|.mms fil|
|000016a0| 65 20 66 6f 72 20 62 75 | 69 6c 64 69 6e 67 20 66 |e for bu|ilding f|
|000016b0| 6c 65 78 20 75 6e 64 65 | 72 20 56 4d 53 20 68 61 |lex unde|r VMS ha|
|000016c0| 73 20 62 65 65 6e 20 75 | 70 64 61 74 65 64 2c 0a |s been u|pdated,.|
|000016d0| 09 20 20 74 68 61 6e 6b | 73 20 74 6f 20 50 61 74 |. thank|s to Pat|
|000016e0| 20 52 61 6e 6b 69 6e 2e | 0a 0a 09 2d 20 54 68 65 | Rankin.|...- The|
|000016f0| 20 6e 6f 74 65 73 20 6f | 6e 20 62 75 69 6c 64 69 | notes o|n buildi|
|00001700| 6e 67 20 66 6c 65 78 20 | 66 6f 72 20 74 68 65 20 |ng flex |for the |
|00001710| 41 6d 69 67 61 20 68 61 | 76 65 20 62 65 65 6e 20 |Amiga ha|ve been |
|00001720| 75 70 64 61 74 65 64 20 | 66 6f 72 0a 09 20 20 66 |updated |for.. f|
|00001730| 6c 65 78 20 32 2e 35 2c | 20 63 6f 6e 74 72 69 62 |lex 2.5,| contrib|
|00001740| 75 74 65 64 20 62 79 20 | 41 6e 64 72 65 61 73 20 |uted by |Andreas |
|00001750| 53 63 68 65 72 65 72 2e | 0a 0a 0a 43 68 61 6e 67 |Scherer.|...Chang|
|00001760| 65 73 20 62 65 74 77 65 | 65 6e 20 72 65 6c 65 61 |es betwe|en relea|
|00001770| 73 65 20 32 2e 35 2e 31 | 20 28 32 38 4d 61 72 39 |se 2.5.1| (28Mar9|
|00001780| 35 29 20 61 6e 64 20 72 | 65 6c 65 61 73 65 20 32 |5) and r|elease 2|
|00001790| 2e 34 2e 37 3a 0a 0a 09 | 2d 20 41 20 6e 65 77 20 |.4.7:...|- A new |
|000017a0| 63 6f 6e 63 65 70 74 20 | 6f 66 20 22 73 74 61 72 |concept |of "star|
|000017b0| 74 20 63 6f 6e 64 69 74 | 69 6f 6e 22 20 73 63 6f |t condit|ion" sco|
|000017c0| 70 65 20 68 61 73 20 62 | 65 65 6e 20 69 6e 74 72 |pe has b|een intr|
|000017d0| 6f 64 75 63 65 64 2e 0a | 09 20 20 41 20 73 74 61 |oduced..|. A sta|
|000017e0| 72 74 20 63 6f 6e 64 69 | 74 69 6f 6e 20 73 63 6f |rt condi|tion sco|
|000017f0| 70 65 20 69 73 20 62 65 | 67 75 6e 20 77 69 74 68 |pe is be|gun with|
|00001800| 3a 0a 0a 09 09 3c 53 43 | 73 3e 7b 0a 0a 09 20 20 |:....<SC|s>{... |
|00001810| 77 68 65 72 65 20 53 43 | 73 20 69 73 20 61 20 6c |where SC|s is a l|
|00001820| 69 73 74 20 6f 66 20 6f | 6e 65 20 6f 72 20 6d 6f |ist of o|ne or mo|
|00001830| 72 65 20 73 74 61 72 74 | 20 63 6f 6e 64 69 74 69 |re start| conditi|
|00001840| 6f 6e 73 2e 20 20 49 6e | 73 69 64 65 0a 09 20 20 |ons. In|side.. |
|00001850| 74 68 65 20 73 74 61 72 | 74 20 63 6f 6e 64 69 74 |the star|t condit|
|00001860| 69 6f 6e 20 73 63 6f 70 | 65 2c 20 65 76 65 72 79 |ion scop|e, every|
|00001870| 20 72 75 6c 65 20 61 75 | 74 6f 6d 61 74 69 63 61 | rule au|tomatica|
|00001880| 6c 6c 79 20 68 61 73 20 | 74 68 65 0a 09 20 20 70 |lly has |the.. p|
|00001890| 72 65 66 69 78 20 3c 53 | 43 73 3e 20 61 70 70 6c |refix <S|Cs> appl|
|000018a0| 69 65 64 20 74 6f 20 69 | 74 2c 20 75 6e 74 69 6c |ied to i|t, until|
|000018b0| 20 61 20 27 7d 27 20 77 | 68 69 63 68 20 6d 61 74 | a '}' w|hich mat|
|000018c0| 63 68 65 73 20 74 68 65 | 0a 09 20 20 69 6e 69 74 |ches the|.. init|
|000018d0| 69 61 6c 20 27 7b 27 2e | 20 20 53 6f 2c 20 66 6f |ial '{'.| So, fo|
|000018e0| 72 20 65 78 61 6d 70 6c | 65 3a 0a 0a 09 09 3c 45 |r exampl|e:....<E|
|000018f0| 53 43 3e 7b 0a 09 09 09 | 22 5c 5c 6e 22 09 72 65 |SC>{....|"\\n".re|
|00001900| 74 75 72 6e 20 27 5c 6e | 27 3b 0a 09 09 09 22 5c |turn '\n|';...."\|
|00001910| 5c 72 22 09 72 65 74 75 | 72 6e 20 27 5c 72 27 3b |\r".retu|rn '\r';|
|00001920| 0a 09 09 09 22 5c 5c 66 | 22 09 72 65 74 75 72 6e |...."\\f|".return|
|00001930| 20 27 5c 66 27 3b 0a 09 | 09 09 22 5c 5c 30 22 09 | '\f';..|.."\\0".|
|00001940| 72 65 74 75 72 6e 20 27 | 5c 30 27 3b 0a 09 09 7d |return '|\0';...}|
|00001950| 0a 0a 09 20 20 69 73 20 | 65 71 75 69 76 61 6c 65 |... is |equivale|
|00001960| 6e 74 20 74 6f 3a 0a 0a | 09 09 3c 45 53 43 3e 22 |nt to:..|..<ESC>"|
|00001970| 5c 5c 6e 22 09 72 65 74 | 75 72 6e 20 27 5c 6e 27 |\\n".ret|urn '\n'|
|00001980| 3b 0a 09 09 3c 45 53 43 | 3e 22 5c 5c 72 22 09 72 |;...<ESC|>"\\r".r|
|00001990| 65 74 75 72 6e 20 27 5c | 72 27 3b 0a 09 09 3c 45 |eturn '\|r';...<E|
|000019a0| 53 43 3e 22 5c 5c 66 22 | 09 72 65 74 75 72 6e 20 |SC>"\\f"|.return |
|000019b0| 27 5c 66 27 3b 0a 09 09 | 3c 45 53 43 3e 22 5c 5c |'\f';...|<ESC>"\\|
|000019c0| 30 22 09 72 65 74 75 72 | 6e 20 27 5c 30 27 3b 0a |0".retur|n '\0';.|
|000019d0| 0a 09 20 20 41 73 20 69 | 6e 64 69 63 61 74 65 64 |.. As i|ndicated|
|000019e0| 20 69 6e 20 74 68 69 73 | 20 65 78 61 6d 70 6c 65 | in this| example|
|000019f0| 2c 20 72 75 6c 65 73 20 | 69 6e 73 69 64 65 20 73 |, rules |inside s|
|00001a00| 74 61 72 74 20 63 6f 6e | 64 69 74 69 6f 6e 20 73 |tart con|dition s|
|00001a10| 63 6f 70 65 73 0a 09 20 | 20 28 61 6e 64 20 61 6e |copes.. | (and an|
|00001a20| 79 20 72 75 6c 65 2c 20 | 61 63 74 75 61 6c 6c 79 |y rule, |actually|
|00001a30| 2c 20 6f 74 68 65 72 20 | 74 68 61 6e 20 74 68 65 |, other |than the|
|00001a40| 20 66 69 72 73 74 29 20 | 63 61 6e 20 62 65 20 69 | first) |can be i|
|00001a50| 6e 64 65 6e 74 65 64 2c | 0a 09 20 20 74 6f 20 62 |ndented,|.. to b|
|00001a60| 65 74 74 65 72 20 73 68 | 6f 77 20 74 68 65 20 65 |etter sh|ow the e|
|00001a70| 78 74 65 6e 74 20 6f 66 | 20 74 68 65 20 73 63 6f |xtent of| the sco|
|00001a80| 70 65 2e 0a 0a 09 20 20 | 53 74 61 72 74 20 63 6f |pe.... |Start co|
|00001a90| 6e 64 69 74 69 6f 6e 20 | 73 63 6f 70 65 73 20 6d |ndition |scopes m|
|00001aa0| 61 79 20 62 65 20 6e 65 | 73 74 65 64 2e 0a 0a 09 |ay be ne|sted....|
|00001ab0| 2d 20 54 68 65 20 6e 65 | 77 20 25 6f 70 74 69 6f |- The ne|w %optio|
|00001ac0| 6e 20 64 69 72 65 63 74 | 69 76 65 20 63 61 6e 20 |n direct|ive can |
|00001ad0| 62 65 20 75 73 65 64 20 | 69 6e 20 74 68 65 20 66 |be used |in the f|
|00001ae0| 69 72 73 74 20 73 65 63 | 74 69 6f 6e 20 6f 66 0a |irst sec|tion of.|
|00001af0| 09 20 20 61 20 66 6c 65 | 78 20 73 63 61 6e 6e 65 |. a fle|x scanne|
|00001b00| 72 20 74 6f 20 63 6f 6e | 74 72 6f 6c 20 73 63 61 |r to con|trol sca|
|00001b10| 6e 6e 65 72 2d 67 65 6e | 65 72 61 74 69 6f 6e 20 |nner-gen|eration |
|00001b20| 6f 70 74 69 6f 6e 73 2e | 20 20 4d 6f 73 74 0a 09 |options.| Most..|
|00001b30| 20 20 6f 70 74 69 6f 6e | 73 20 61 72 65 20 67 69 | option|s are gi|
|00001b40| 76 65 6e 20 73 69 6d 70 | 6c 79 20 61 73 20 6e 61 |ven simp|ly as na|
|00001b50| 6d 65 73 2c 20 6f 70 74 | 69 6f 6e 61 6c 6c 79 20 |mes, opt|ionally |
|00001b60| 70 72 65 63 65 64 65 64 | 20 62 79 20 74 68 65 0a |preceded| by the.|
|00001b70| 09 20 20 77 6f 72 64 20 | 22 6e 6f 22 20 28 77 69 |. word |"no" (wi|
|00001b80| 74 68 20 6e 6f 20 69 6e | 74 65 72 76 65 6e 69 6e |th no in|tervenin|
|00001b90| 67 20 77 68 69 74 65 73 | 70 61 63 65 29 20 74 6f |g whites|pace) to|
|00001ba0| 20 6e 65 67 61 74 65 20 | 74 68 65 69 72 0a 09 20 | negate |their.. |
|00001bb0| 20 6d 65 61 6e 69 6e 67 | 2e 20 20 53 6f 6d 65 20 | meaning|. Some |
|00001bc0| 61 72 65 20 65 71 75 69 | 76 61 6c 65 6e 74 20 74 |are equi|valent t|
|00001bd0| 6f 20 66 6c 65 78 20 66 | 6c 61 67 73 2c 20 73 6f |o flex f|lags, so|
|00001be0| 20 70 75 74 74 69 6e 67 | 20 74 68 65 6d 0a 09 20 | putting| them.. |
|00001bf0| 20 69 6e 20 79 6f 75 72 | 20 73 63 61 6e 6e 65 72 | in your| scanner|
|00001c00| 20 73 6f 75 72 63 65 20 | 69 73 20 65 71 75 69 76 | source |is equiv|
|00001c10| 61 6c 65 6e 74 20 74 6f | 20 61 6c 77 61 79 73 20 |alent to| always |
|00001c20| 73 70 65 63 69 66 79 69 | 6e 67 0a 09 20 20 74 68 |specifyi|ng.. th|
|00001c30| 65 20 66 6c 61 67 20 28 | 25 6f 70 74 69 6f 6e 27 |e flag (|%option'|
|00001c40| 73 20 74 61 6b 65 20 70 | 72 65 63 65 64 65 6e 63 |s take p|recedenc|
|00001c50| 65 20 6f 76 65 72 20 66 | 6c 61 67 73 29 3a 0a 0a |e over f|lags):..|
|00001c60| 09 09 37 62 69 74 09 2d | 37 20 6f 70 74 69 6f 6e |..7bit.-|7 option|
|00001c70| 0a 09 09 38 62 69 74 09 | 2d 38 20 6f 70 74 69 6f |...8bit.|-8 optio|
|00001c80| 6e 0a 09 09 61 6c 69 67 | 6e 09 2d 43 61 20 6f 70 |n...alig|n.-Ca op|
|00001c90| 74 69 6f 6e 0a 09 09 62 | 61 63 6b 75 70 09 2d 62 |tion...b|ackup.-b|
|00001ca0| 20 6f 70 74 69 6f 6e 0a | 09 09 62 61 74 63 68 09 | option.|..batch.|
|00001cb0| 2d 42 20 6f 70 74 69 6f | 6e 0a 09 09 63 2b 2b 09 |-B optio|n...c++.|
|00001cc0| 2d 2b 20 6f 70 74 69 6f | 6e 0a 09 09 63 61 73 65 |-+ optio|n...case|
|00001cd0| 66 75 6c 09 6f 70 70 6f | 73 69 74 65 20 6f 66 20 |ful.oppo|site of |
|00001ce0| 2d 69 20 6f 70 74 69 6f | 6e 20 28 63 61 73 65 66 |-i optio|n (casef|
|00001cf0| 75 6c 20 69 73 20 74 68 | 65 20 64 65 66 61 75 6c |ul is th|e defaul|
|00001d00| 74 29 3b 0a 09 09 63 61 | 73 65 2d 73 65 6e 73 69 |t);...ca|se-sensi|
|00001d10| 74 69 76 65 09 73 61 6d | 65 20 61 73 20 61 62 6f |tive.sam|e as abo|
|00001d20| 76 65 0a 09 09 63 61 73 | 65 6c 65 73 73 09 2d 69 |ve...cas|eless.-i|
|00001d30| 20 6f 70 74 69 6f 6e 3b | 0a 09 09 63 61 73 65 2d | option;|...case-|
|00001d40| 69 6e 73 65 6e 73 69 74 | 69 76 65 09 73 61 6d 65 |insensit|ive.same|
|00001d50| 20 61 73 20 61 62 6f 76 | 65 0a 09 09 64 65 62 75 | as abov|e...debu|
|00001d60| 67 09 2d 64 20 6f 70 74 | 69 6f 6e 0a 09 09 64 65 |g.-d opt|ion...de|
|00001d70| 66 61 75 6c 74 09 6f 70 | 70 6f 73 69 74 65 20 6f |fault.op|posite o|
|00001d80| 66 20 2d 73 20 6f 70 74 | 69 6f 6e 0a 09 09 65 63 |f -s opt|ion...ec|
|00001d90| 73 09 2d 43 65 20 6f 70 | 74 69 6f 6e 0a 09 09 66 |s.-Ce op|tion...f|
|00001da0| 61 73 74 09 2d 46 20 6f | 70 74 69 6f 6e 0a 09 09 |ast.-F o|ption...|
|00001db0| 66 75 6c 6c 09 2d 66 20 | 6f 70 74 69 6f 6e 0a 09 |full.-f |option..|
|00001dc0| 09 69 6e 74 65 72 61 63 | 74 69 76 65 09 2d 49 20 |.interac|tive.-I |
|00001dd0| 6f 70 74 69 6f 6e 0a 09 | 09 6c 65 78 2d 63 6f 6d |option..|.lex-com|
|00001de0| 70 61 74 09 2d 6c 20 6f | 70 74 69 6f 6e 0a 09 09 |pat.-l o|ption...|
|00001df0| 6d 65 74 61 2d 65 63 73 | 09 2d 43 6d 20 6f 70 74 |meta-ecs|.-Cm opt|
|00001e00| 69 6f 6e 0a 09 09 70 65 | 72 66 2d 72 65 70 6f 72 |ion...pe|rf-repor|
|00001e10| 74 09 2d 70 20 6f 70 74 | 69 6f 6e 0a 09 09 72 65 |t.-p opt|ion...re|
|00001e20| 61 64 09 2d 43 72 20 6f | 70 74 69 6f 6e 0a 09 09 |ad.-Cr o|ption...|
|00001e30| 73 74 64 6f 75 74 09 2d | 74 20 6f 70 74 69 6f 6e |stdout.-|t option|
|00001e40| 0a 09 09 76 65 72 62 6f | 73 65 09 2d 76 20 6f 70 |...verbo|se.-v op|
|00001e50| 74 69 6f 6e 0a 09 09 77 | 61 72 6e 09 6f 70 70 6f |tion...w|arn.oppo|
|00001e60| 73 69 74 65 20 6f 66 20 | 2d 77 20 6f 70 74 69 6f |site of |-w optio|
|00001e70| 6e 20 28 73 6f 20 75 73 | 65 20 22 25 6f 70 74 69 |n (so us|e "%opti|
|00001e80| 6f 6e 20 6e 6f 77 61 72 | 6e 22 20 66 6f 72 20 2d |on nowar|n" for -|
|00001e90| 77 29 0a 0a 09 09 61 72 | 72 61 79 09 65 71 75 69 |w)....ar|ray.equi|
|00001ea0| 76 61 6c 65 6e 74 20 74 | 6f 20 22 25 61 72 72 61 |valent t|o "%arra|
|00001eb0| 79 22 0a 09 09 70 6f 69 | 6e 74 65 72 09 65 71 75 |y"...poi|nter.equ|
|00001ec0| 69 76 61 6c 65 6e 74 20 | 74 6f 20 22 25 70 6f 69 |ivalent |to "%poi|
|00001ed0| 6e 74 65 72 22 20 28 64 | 65 66 61 75 6c 74 29 0a |nter" (d|efault).|
|00001ee0| 0a 09 20 20 53 6f 6d 65 | 20 70 72 6f 76 69 64 65 |.. Some| provide|
|00001ef0| 20 6e 65 77 20 66 65 61 | 74 75 72 65 73 3a 0a 0a | new fea|tures:..|
|00001f00| 09 09 61 6c 77 61 79 73 | 2d 69 6e 74 65 72 61 63 |..always|-interac|
|00001f10| 74 69 76 65 09 67 65 6e | 65 72 61 74 65 20 61 20 |tive.gen|erate a |
|00001f20| 73 63 61 6e 6e 65 72 20 | 77 68 69 63 68 20 61 6c |scanner |which al|
|00001f30| 77 61 79 73 0a 09 09 09 | 63 6f 6e 73 69 64 65 72 |ways....|consider|
|00001f40| 73 20 69 74 73 20 69 6e | 70 75 74 20 22 69 6e 74 |s its in|put "int|
|00001f50| 65 72 61 63 74 69 76 65 | 22 20 28 6e 6f 20 63 61 |eractive|" (no ca|
|00001f60| 6c 6c 20 74 6f 20 69 73 | 61 74 74 79 28 29 0a 09 |ll to is|atty()..|
|00001f70| 09 09 77 69 6c 6c 20 62 | 65 20 6d 61 64 65 20 77 |..will b|e made w|
|00001f80| 68 65 6e 20 74 68 65 20 | 73 63 61 6e 6e 65 72 20 |hen the |scanner |
|00001f90| 72 75 6e 73 29 0a 09 09 | 6d 61 69 6e 09 73 75 70 |runs)...|main.sup|
|00001fa0| 70 6c 79 20 61 20 6d 61 | 69 6e 20 70 72 6f 67 72 |ply a ma|in progr|
|00001fb0| 61 6d 20 66 6f 72 20 74 | 68 65 20 73 63 61 6e 6e |am for t|he scann|
|00001fc0| 65 72 2c 20 77 68 69 63 | 68 0a 09 09 09 73 69 6d |er, whic|h....sim|
|00001fd0| 70 6c 79 20 63 61 6c 6c | 73 20 79 79 6c 65 78 28 |ply call|s yylex(|
|00001fe0| 29 2e 20 20 49 6d 70 6c | 69 65 73 20 25 6f 70 74 |). Impl|ies %opt|
|00001ff0| 69 6f 6e 20 6e 6f 79 79 | 77 72 61 70 2e 0a 09 09 |ion noyy|wrap....|
|00002000| 6e 65 76 65 72 2d 69 6e | 74 65 72 61 63 74 69 76 |never-in|teractiv|
|00002010| 65 09 67 65 6e 65 72 61 | 74 65 20 61 20 73 63 61 |e.genera|te a sca|
|00002020| 6e 6e 65 72 20 77 68 69 | 63 68 20 6e 65 76 65 72 |nner whi|ch never|
|00002030| 0a 09 09 09 63 6f 6e 73 | 69 64 65 72 73 20 69 74 |....cons|iders it|
|00002040| 73 20 69 6e 70 75 74 20 | 22 69 6e 74 65 72 61 63 |s input |"interac|
|00002050| 74 69 76 65 22 20 28 6e | 6f 20 63 61 6c 6c 20 74 |tive" (n|o call t|
|00002060| 6f 20 69 73 61 74 74 79 | 28 29 0a 09 09 09 77 69 |o isatty|()....wi|
|00002070| 6c 6c 20 62 65 20 6d 61 | 64 65 20 77 68 65 6e 20 |ll be ma|de when |
|00002080| 74 68 65 20 73 63 61 6e | 6e 65 72 20 72 75 6e 73 |the scan|ner runs|
|00002090| 29 0a 09 09 73 74 61 63 | 6b 09 69 66 20 73 65 74 |)...stac|k.if set|
|000020a0| 2c 20 65 6e 61 62 6c 65 | 20 73 74 61 72 74 20 63 |, enable| start c|
|000020b0| 6f 6e 64 69 74 69 6f 6e | 20 73 74 61 63 6b 73 20 |ondition| stacks |
|000020c0| 28 73 65 65 20 62 65 6c | 6f 77 29 0a 09 09 73 74 |(see bel|ow)...st|
|000020d0| 64 69 6e 69 74 09 69 66 | 20 75 6e 73 65 74 20 28 |dinit.if| unset (|
|000020e0| 22 25 6f 70 74 69 6f 6e | 20 6e 6f 73 74 64 69 6e |"%option| nostdin|
|000020f0| 69 74 22 29 2c 20 69 6e | 69 74 69 61 6c 69 7a 65 |it"), in|itialize|
|00002100| 20 79 79 69 6e 0a 09 09 | 09 61 6e 64 20 79 79 6f | yyin...|.and yyo|
|00002110| 75 74 20 73 74 61 74 69 | 63 61 6c 6c 79 20 74 6f |ut stati|cally to|
|00002120| 20 6e 69 6c 20 46 49 4c | 45 2a 20 70 6f 69 6e 74 | nil FIL|E* point|
|00002130| 65 72 73 2c 20 69 6e 73 | 74 65 61 64 0a 09 09 09 |ers, ins|tead....|
|00002140| 6f 66 20 73 74 64 69 6e | 20 61 6e 64 20 73 74 64 |of stdin| and std|
|00002150| 6f 75 74 0a 09 09 79 79 | 6c 69 6e 65 6e 6f 09 69 |out...yy|lineno.i|
|00002160| 66 20 73 65 74 2c 20 6b | 65 65 70 20 74 72 61 63 |f set, k|eep trac|
|00002170| 6b 20 6f 66 20 74 68 65 | 20 63 75 72 72 65 6e 74 |k of the| current|
|00002180| 20 6c 69 6e 65 0a 09 09 | 09 6e 75 6d 62 65 72 20 | line...|.number |
|00002190| 69 6e 20 67 6c 6f 62 61 | 6c 20 79 79 6c 69 6e 65 |in globa|l yyline|
|000021a0| 6e 6f 20 28 74 68 69 73 | 20 6f 70 74 69 6f 6e 20 |no (this| option |
|000021b0| 69 73 20 65 78 70 65 6e | 73 69 76 65 0a 09 09 09 |is expen|sive....|
|000021c0| 69 6e 20 74 65 72 6d 73 | 20 6f 66 20 70 65 72 66 |in terms| of perf|
|000021d0| 6f 72 6d 61 6e 63 65 29 | 2e 20 20 54 68 65 20 6c |ormance)|. The l|
|000021e0| 69 6e 65 20 6e 75 6d 62 | 65 72 20 69 73 20 61 76 |ine numb|er is av|
|000021f0| 61 69 6c 61 62 6c 65 0a | 09 09 09 74 6f 20 43 2b |ailable.|...to C+|
|00002200| 2b 20 73 63 61 6e 6e 69 | 6e 67 20 6f 62 6a 65 63 |+ scanni|ng objec|
|00002210| 74 73 20 76 69 61 20 74 | 68 65 20 6e 65 77 20 6d |ts via t|he new m|
|00002220| 65 6d 62 65 72 20 66 75 | 6e 63 74 69 6f 6e 0a 09 |ember fu|nction..|
|00002230| 09 09 6c 69 6e 65 6e 6f | 28 29 2e 0a 09 09 79 79 |..lineno|()....yy|
|00002240| 77 72 61 70 09 69 66 20 | 75 6e 73 65 74 20 28 22 |wrap.if |unset ("|
|00002250| 25 6f 70 74 69 6f 6e 20 | 6e 6f 79 79 77 72 61 70 |%option |noyywrap|
|00002260| 22 29 2c 20 73 63 61 6e | 6e 65 72 20 64 6f 65 73 |"), scan|ner does|
|00002270| 20 6e 6f 74 0a 09 09 09 | 63 61 6c 6c 20 79 79 77 | not....|call yyw|
|00002280| 72 61 70 28 29 20 75 70 | 6f 6e 20 45 4f 46 20 62 |rap() up|on EOF b|
|00002290| 75 74 20 73 69 6d 70 6c | 79 20 61 73 73 75 6d 65 |ut simpl|y assume|
|000022a0| 73 20 74 68 65 72 65 0a | 09 09 09 61 72 65 20 6e |s there.|...are n|
|000022b0| 6f 20 6d 6f 72 65 20 66 | 69 6c 65 73 20 74 6f 20 |o more f|iles to |
|000022c0| 73 63 61 6e 0a 0a 09 20 | 20 46 6c 65 78 20 73 63 |scan... | Flex sc|
|000022d0| 61 6e 73 20 79 6f 75 72 | 20 72 75 6c 65 20 61 63 |ans your| rule ac|
|000022e0| 74 69 6f 6e 73 20 74 6f | 20 64 65 74 65 72 6d 69 |tions to| determi|
|000022f0| 6e 65 20 77 68 65 74 68 | 65 72 20 79 6f 75 20 75 |ne wheth|er you u|
|00002300| 73 65 20 74 68 65 0a 09 | 20 20 52 45 4a 45 43 54 |se the..| REJECT|
|00002310| 20 6f 72 20 79 79 6d 6f | 72 65 20 66 65 61 74 75 | or yymo|re featu|
|00002320| 72 65 73 20 28 74 68 69 | 73 20 69 73 20 6e 6f 74 |res (thi|s is not|
|00002330| 20 6e 65 77 29 2e 20 20 | 54 77 6f 20 25 6f 70 74 | new). |Two %opt|
|00002340| 69 6f 6e 73 20 63 61 6e | 20 62 65 0a 09 20 20 75 |ions can| be.. u|
|00002350| 73 65 64 20 74 6f 20 6f | 76 65 72 72 69 64 65 20 |sed to o|verride |
|00002360| 69 74 73 20 64 65 63 69 | 73 69 6f 6e 2c 20 65 69 |its deci|sion, ei|
|00002370| 74 68 65 72 20 62 79 20 | 73 65 74 74 69 6e 67 20 |ther by |setting |
|00002380| 74 68 65 6d 20 74 6f 20 | 69 6e 64 69 63 61 74 65 |them to |indicate|
|00002390| 0a 09 20 20 74 68 65 20 | 66 65 61 74 75 72 65 20 |.. the |feature |
|000023a0| 69 73 20 69 6e 64 65 65 | 64 20 75 73 65 64 2c 20 |is indee|d used, |
|000023b0| 6f 72 20 75 6e 73 65 74 | 74 69 6e 67 20 74 68 65 |or unset|ting the|
|000023c0| 6d 20 74 6f 20 69 6e 64 | 69 63 61 74 65 20 69 74 |m to ind|icate it|
|000023d0| 0a 09 20 20 61 63 74 75 | 61 6c 6c 79 20 69 73 20 |.. actu|ally is |
|000023e0| 6e 6f 74 20 75 73 65 64 | 3a 0a 0a 09 09 72 65 6a |not used|:....rej|
|000023f0| 65 63 74 0a 09 09 79 79 | 6d 6f 72 65 0a 0a 09 20 |ect...yy|more... |
|00002400| 20 54 68 72 65 65 20 25 | 6f 70 74 69 6f 6e 27 73 | Three %|option's|
|00002410| 20 74 61 6b 65 20 73 74 | 72 69 6e 67 2d 64 65 6c | take st|ring-del|
|00002420| 69 6d 69 74 65 64 20 76 | 61 6c 75 65 73 2c 20 6f |imited v|alues, o|
|00002430| 66 66 73 65 74 20 77 69 | 74 68 20 27 3d 27 3a 0a |ffset wi|th '=':.|
|00002440| 0a 09 09 6f 75 74 66 69 | 6c 65 3d 22 3c 6e 61 6d |...outfi|le="<nam|
|00002450| 65 3e 22 09 65 71 75 69 | 76 61 6c 65 6e 74 20 74 |e>".equi|valent t|
|00002460| 6f 20 2d 6f 3c 6e 61 6d | 65 3e 0a 09 09 70 72 65 |o -o<nam|e>...pre|
|00002470| 66 69 78 3d 22 3c 6e 61 | 6d 65 3e 22 09 09 65 71 |fix="<na|me>"..eq|
|00002480| 75 69 76 61 6c 65 6e 74 | 20 74 6f 20 2d 50 3c 6e |uivalent| to -P<n|
|00002490| 61 6d 65 3e 0a 09 09 79 | 79 63 6c 61 73 73 3d 22 |ame>...y|yclass="|
|000024a0| 3c 6e 61 6d 65 3e 22 09 | 73 65 74 20 74 68 65 20 |<name>".|set the |
|000024b0| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 43 2b 2b 20 |name of |the C++ |
|000024c0| 73 63 61 6e 6e 69 6e 67 | 20 63 6c 61 73 73 0a 09 |scanning| class..|
|000024d0| 09 09 09 09 28 73 65 65 | 20 62 65 6c 6f 77 29 0a |....(see| below).|
|000024e0| 0a 09 20 20 41 20 6e 75 | 6d 62 65 72 20 6f 66 20 |.. A nu|mber of |
|000024f0| 25 6f 70 74 69 6f 6e 27 | 73 20 61 72 65 20 61 76 |%option'|s are av|
|00002500| 61 69 6c 61 62 6c 65 20 | 66 6f 72 20 6c 69 6e 74 |ailable |for lint|
|00002510| 20 70 75 72 69 73 74 73 | 20 77 68 6f 0a 09 20 20 | purists| who.. |
|00002520| 77 61 6e 74 20 74 6f 20 | 73 75 70 70 72 65 73 73 |want to |suppress|
|00002530| 20 74 68 65 20 61 70 70 | 65 61 72 61 6e 63 65 20 | the app|earance |
|00002540| 6f 66 20 75 6e 6e 65 65 | 64 65 64 20 72 6f 75 74 |of unnee|ded rout|
|00002550| 69 6e 65 73 20 69 6e 0a | 09 20 20 74 68 65 20 67 |ines in.|. the g|
|00002560| 65 6e 65 72 61 74 65 64 | 20 73 63 61 6e 6e 65 72 |enerated| scanner|
|00002570| 2e 20 20 45 61 63 68 20 | 6f 66 20 74 68 65 20 66 |. Each |of the f|
|00002580| 6f 6c 6c 6f 77 69 6e 67 | 2c 20 69 66 20 75 6e 73 |ollowing|, if uns|
|00002590| 65 74 2c 0a 09 20 20 72 | 65 73 75 6c 74 73 20 69 |et,.. r|esults i|
|000025a0| 6e 20 74 68 65 20 63 6f | 72 72 65 73 70 6f 6e 64 |n the co|rrespond|
|000025b0| 69 6e 67 20 72 6f 75 74 | 69 6e 65 20 6e 6f 74 20 |ing rout|ine not |
|000025c0| 61 70 70 65 61 72 69 6e | 67 20 69 6e 20 74 68 65 |appearin|g in the|
|000025d0| 0a 09 20 20 67 65 6e 65 | 72 61 74 65 64 20 73 63 |.. gene|rated sc|
|000025e0| 61 6e 6e 65 72 3a 0a 0a | 09 09 69 6e 70 75 74 2c |anner:..|..input,|
|000025f0| 20 75 6e 70 75 74 0a 09 | 09 79 79 5f 70 75 73 68 | unput..|.yy_push|
|00002600| 5f 73 74 61 74 65 2c 20 | 79 79 5f 70 6f 70 5f 73 |_state, |yy_pop_s|
|00002610| 74 61 74 65 2c 20 79 79 | 5f 74 6f 70 5f 73 74 61 |tate, yy|_top_sta|
|00002620| 74 65 0a 09 09 79 79 5f | 73 63 61 6e 5f 62 75 66 |te...yy_|scan_buf|
|00002630| 66 65 72 2c 20 79 79 5f | 73 63 61 6e 5f 62 79 74 |fer, yy_|scan_byt|
|00002640| 65 73 2c 20 79 79 5f 73 | 63 61 6e 5f 73 74 72 69 |es, yy_s|can_stri|
|00002650| 6e 67 0a 0a 09 20 20 59 | 6f 75 20 63 61 6e 20 73 |ng... Y|ou can s|
|00002660| 70 65 63 69 66 79 20 6d | 75 6c 74 69 70 6c 65 20 |pecify m|ultiple |
|00002670| 6f 70 74 69 6f 6e 73 20 | 77 69 74 68 20 61 20 73 |options |with a s|
|00002680| 69 6e 67 6c 65 20 25 6f | 70 74 69 6f 6e 20 64 69 |ingle %o|ption di|
|00002690| 72 65 63 74 69 76 65 2c | 0a 09 20 20 61 6e 64 20 |rective,|.. and |
|000026a0| 6d 75 6c 74 69 70 6c 65 | 20 64 69 72 65 63 74 69 |multiple| directi|
|000026b0| 76 65 73 20 69 6e 20 74 | 68 65 20 66 69 72 73 74 |ves in t|he first|
|000026c0| 20 73 65 63 74 69 6f 6e | 20 6f 66 20 79 6f 75 72 | section| of your|
|000026d0| 20 66 6c 65 78 20 69 6e | 70 75 74 20 66 69 6c 65 | flex in|put file|
|000026e0| 2e 0a 0a 09 2d 20 54 68 | 65 20 6e 65 77 20 66 75 |....- Th|e new fu|
|000026f0| 6e 63 74 69 6f 6e 3a 0a | 0a 09 09 59 59 5f 42 55 |nction:.|...YY_BU|
|00002700| 46 46 45 52 5f 53 54 41 | 54 45 20 79 79 5f 73 63 |FFER_STA|TE yy_sc|
|00002710| 61 6e 5f 73 74 72 69 6e | 67 28 20 63 6f 6e 73 74 |an_strin|g( const|
|00002720| 20 63 68 61 72 20 2a 73 | 74 72 20 29 0a 0a 09 20 | char *s|tr )... |
|00002730| 20 72 65 74 75 72 6e 73 | 20 61 20 59 59 5f 42 55 | returns| a YY_BU|
|00002740| 46 46 45 52 5f 53 54 41 | 54 45 20 28 77 68 69 63 |FFER_STA|TE (whic|
|00002750| 68 20 61 6c 73 6f 20 62 | 65 63 6f 6d 65 73 20 74 |h also b|ecomes t|
|00002760| 68 65 20 63 75 72 72 65 | 6e 74 20 69 6e 70 75 74 |he curre|nt input|
|00002770| 0a 09 20 20 62 75 66 66 | 65 72 29 20 66 6f 72 20 |.. buff|er) for |
|00002780| 73 63 61 6e 6e 69 6e 67 | 20 74 68 65 20 67 69 76 |scanning| the giv|
|00002790| 65 6e 20 73 74 72 69 6e | 67 2c 20 77 68 69 63 68 |en strin|g, which|
|000027a0| 20 6f 63 63 75 72 73 20 | 73 74 61 72 74 69 6e 67 | occurs |starting|
|000027b0| 0a 09 20 20 77 69 74 68 | 20 74 68 65 20 6e 65 78 |.. with| the nex|
|000027c0| 74 20 63 61 6c 6c 20 74 | 6f 20 79 79 6c 65 78 28 |t call t|o yylex(|
|000027d0| 29 2e 20 20 54 68 65 20 | 73 74 72 69 6e 67 20 6d |). The |string m|
|000027e0| 75 73 74 20 62 65 20 4e | 55 4c 2d 74 65 72 6d 69 |ust be N|UL-termi|
|000027f0| 6e 61 74 65 64 2e 0a 09 | 20 20 41 20 72 65 6c 61 |nated...| A rela|
|00002800| 74 65 64 20 66 75 6e 63 | 74 69 6f 6e 3a 0a 0a 09 |ted func|tion:...|
|00002810| 09 59 59 5f 42 55 46 46 | 45 52 5f 53 54 41 54 45 |.YY_BUFF|ER_STATE|
|00002820| 20 79 79 5f 73 63 61 6e | 5f 62 79 74 65 73 28 20 | yy_scan|_bytes( |
|00002830| 63 6f 6e 73 74 20 63 68 | 61 72 20 2a 62 79 74 65 |const ch|ar *byte|
|00002840| 73 2c 20 69 6e 74 20 6c | 65 6e 20 29 0a 0a 09 20 |s, int l|en )... |
|00002850| 20 63 72 65 61 74 65 73 | 20 61 20 62 75 66 66 65 | creates| a buffe|
|00002860| 72 20 66 6f 72 20 73 63 | 61 6e 6e 69 6e 67 20 22 |r for sc|anning "|
|00002870| 6c 65 6e 22 20 62 79 74 | 65 73 20 28 69 6e 63 6c |len" byt|es (incl|
|00002880| 75 64 69 6e 67 20 70 6f | 73 73 69 62 6c 79 20 4e |uding po|ssibly N|
|00002890| 55 4c 27 73 29 0a 09 20 | 20 73 74 61 72 74 69 6e |UL's).. | startin|
|000028a0| 67 20 61 74 20 6c 6f 63 | 61 74 69 6f 6e 20 22 62 |g at loc|ation "b|
|000028b0| 79 74 65 73 22 2e 0a 0a | 09 20 20 4e 6f 74 65 20 |ytes"...|. Note |
|000028c0| 74 68 61 74 20 62 6f 74 | 68 20 6f 66 20 74 68 65 |that bot|h of the|
|000028d0| 73 65 20 66 75 6e 63 74 | 69 6f 6e 73 20 63 72 65 |se funct|ions cre|
|000028e0| 61 74 65 20 61 6e 64 20 | 73 63 61 6e 20 61 20 2a |ate and |scan a *|
|000028f0| 63 6f 70 79 2a 20 6f 66 | 0a 09 20 20 74 68 65 20 |copy* of|.. the |
|00002900| 73 74 72 69 6e 67 2f 62 | 79 74 65 73 2e 20 20 28 |string/b|ytes. (|
|00002910| 54 68 69 73 20 6d 61 79 | 20 62 65 20 64 65 73 69 |This may| be desi|
|00002920| 72 61 62 6c 65 2c 20 73 | 69 6e 63 65 20 79 79 6c |rable, s|ince yyl|
|00002930| 65 78 28 29 20 6d 6f 64 | 69 66 69 65 73 0a 09 20 |ex() mod|ifies.. |
|00002940| 20 74 68 65 20 63 6f 6e | 74 65 6e 74 73 20 6f 66 | the con|tents of|
|00002950| 20 74 68 65 20 62 75 66 | 66 65 72 20 69 74 20 69 | the buf|fer it i|
|00002960| 73 20 73 63 61 6e 6e 69 | 6e 67 2e 29 20 20 59 6f |s scanni|ng.) Yo|
|00002970| 75 20 63 61 6e 20 61 76 | 6f 69 64 20 74 68 65 0a |u can av|oid the.|
|00002980| 09 20 20 63 6f 70 79 20 | 62 79 20 75 73 69 6e 67 |. copy |by using|
|00002990| 3a 0a 0a 09 09 59 59 5f | 42 55 46 46 45 52 5f 53 |:....YY_|BUFFER_S|
|000029a0| 54 41 54 45 20 79 79 5f | 73 63 61 6e 5f 62 75 66 |TATE yy_|scan_buf|
|000029b0| 66 65 72 28 20 63 68 61 | 72 20 2a 62 61 73 65 2c |fer( cha|r *base,|
|000029c0| 20 79 79 5f 73 69 7a 65 | 5f 74 20 73 69 7a 65 20 | yy_size|_t size |
|000029d0| 29 0a 0a 09 20 20 77 68 | 69 63 68 20 73 63 61 6e |)... wh|ich scan|
|000029e0| 73 20 69 6e 20 70 6c 61 | 63 65 20 74 68 65 20 62 |s in pla|ce the b|
|000029f0| 75 66 66 65 72 20 73 74 | 61 72 74 69 6e 67 20 61 |uffer st|arting a|
|00002a00| 74 20 22 62 61 73 65 22 | 2c 20 63 6f 6e 73 69 73 |t "base"|, consis|
|00002a10| 74 69 6e 67 0a 09 20 20 | 6f 66 20 22 73 69 7a 65 |ting.. |of "size|
|00002a20| 22 20 62 79 74 65 73 2c | 20 74 68 65 20 6c 61 73 |" bytes,| the las|
|00002a30| 74 20 74 77 6f 20 62 79 | 74 65 73 20 6f 66 20 77 |t two by|tes of w|
|00002a40| 68 69 63 68 20 2a 6d 75 | 73 74 2a 20 62 65 0a 09 |hich *mu|st* be..|
|00002a50| 20 20 59 59 5f 45 4e 44 | 5f 4f 46 5f 42 55 46 46 | YY_END|_OF_BUFF|
|00002a60| 45 52 5f 43 48 41 52 20 | 28 74 68 65 73 65 20 62 |ER_CHAR |(these b|
|00002a70| 79 74 65 73 20 61 72 65 | 20 6e 6f 74 20 73 63 61 |ytes are| not sca|
|00002a80| 6e 6e 65 64 3b 20 74 68 | 75 73 2c 20 73 63 61 6e |nned; th|us, scan|
|00002a90| 6e 69 6e 67 0a 09 20 20 | 63 6f 6e 73 69 73 74 73 |ning.. |consists|
|00002aa0| 20 6f 66 20 62 61 73 65 | 5b 30 5d 20 74 68 72 6f | of base|[0] thro|
|00002ab0| 75 67 68 20 62 61 73 65 | 5b 73 69 7a 65 2d 32 5d |ugh base|[size-2]|
|00002ac0| 2c 20 69 6e 63 6c 75 73 | 69 76 65 29 2e 20 20 49 |, inclus|ive). I|
|00002ad0| 66 20 79 6f 75 0a 09 20 | 20 66 61 69 6c 20 74 6f |f you.. | fail to|
|00002ae0| 20 73 65 74 20 75 70 20 | 22 62 61 73 65 22 20 69 | set up |"base" i|
|00002af0| 6e 20 74 68 69 73 20 6d | 61 6e 6e 65 72 2c 20 79 |n this m|anner, y|
|00002b00| 79 5f 73 63 61 6e 5f 62 | 75 66 66 65 72 20 72 65 |y_scan_b|uffer re|
|00002b10| 74 75 72 6e 73 20 61 0a | 09 20 20 6e 69 6c 20 70 |turns a.|. nil p|
|00002b20| 6f 69 6e 74 65 72 20 69 | 6e 73 74 65 61 64 20 6f |ointer i|nstead o|
|00002b30| 66 20 63 72 65 61 74 69 | 6e 67 20 61 20 6e 65 77 |f creati|ng a new|
|00002b40| 20 69 6e 70 75 74 20 62 | 75 66 66 65 72 2e 0a 0a | input b|uffer...|
|00002b50| 09 20 20 54 68 65 20 74 | 79 70 65 20 79 79 5f 73 |. The t|ype yy_s|
|00002b60| 69 7a 65 5f 74 20 69 73 | 20 61 6e 20 69 6e 74 65 |ize_t is| an inte|
|00002b70| 67 72 61 6c 20 74 79 70 | 65 20 74 6f 20 77 68 69 |gral typ|e to whi|
|00002b80| 63 68 20 79 6f 75 20 63 | 61 6e 20 63 61 73 74 0a |ch you c|an cast.|
|00002b90| 09 20 20 61 6e 20 69 6e | 74 65 67 65 72 20 65 78 |. an in|teger ex|
|00002ba0| 70 72 65 73 73 69 6f 6e | 20 72 65 66 6c 65 63 74 |pression| reflect|
|00002bb0| 69 6e 67 20 74 68 65 20 | 73 69 7a 65 20 6f 66 20 |ing the |size of |
|00002bc0| 74 68 65 20 62 75 66 66 | 65 72 2e 0a 0a 09 2d 20 |the buff|er....- |
|00002bd0| 54 68 72 65 65 20 6e 65 | 77 20 72 6f 75 74 69 6e |Three ne|w routin|
|00002be0| 65 73 20 61 72 65 20 61 | 76 61 69 6c 61 62 6c 65 |es are a|vailable|
|00002bf0| 20 66 6f 72 20 6d 61 6e | 69 70 75 6c 61 74 69 6e | for man|ipulatin|
|00002c00| 67 20 73 74 61 63 6b 73 | 20 6f 66 0a 09 20 20 73 |g stacks| of.. s|
|00002c10| 74 61 72 74 20 63 6f 6e | 64 69 74 69 6f 6e 73 3a |tart con|ditions:|
|00002c20| 0a 0a 09 09 76 6f 69 64 | 20 79 79 5f 70 75 73 68 |....void| yy_push|
|00002c30| 5f 73 74 61 74 65 28 20 | 69 6e 74 20 6e 65 77 5f |_state( |int new_|
|00002c40| 73 74 61 74 65 20 29 0a | 0a 09 20 20 70 75 73 68 |state ).|.. push|
|00002c50| 65 73 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 73 |es the c|urrent s|
|00002c60| 74 61 72 74 20 63 6f 6e | 64 69 74 69 6f 6e 20 6f |tart con|dition o|
|00002c70| 6e 74 6f 20 74 68 65 20 | 74 6f 70 20 6f 66 20 74 |nto the |top of t|
|00002c80| 68 65 20 73 74 61 63 6b | 0a 09 20 20 61 6e 64 20 |he stack|.. and |
|00002c90| 42 45 47 49 4e 27 73 20 | 22 6e 65 77 5f 73 74 61 |BEGIN's |"new_sta|
|00002ca0| 74 65 22 20 28 72 65 63 | 61 6c 6c 20 74 68 61 74 |te" (rec|all that|
|00002cb0| 20 73 74 61 72 74 20 63 | 6f 6e 64 69 74 69 6f 6e | start c|ondition|
|00002cc0| 20 6e 61 6d 65 73 20 61 | 72 65 0a 09 20 20 61 6c | names a|re.. al|
|00002cd0| 73 6f 20 69 6e 74 65 67 | 65 72 73 29 2e 0a 0a 09 |so integ|ers)....|
|00002ce0| 09 76 6f 69 64 20 79 79 | 5f 70 6f 70 5f 73 74 61 |.void yy|_pop_sta|
|00002cf0| 74 65 28 29 0a 0a 09 20 | 20 70 6f 70 73 20 74 68 |te()... | pops th|
|00002d00| 65 20 74 6f 70 20 6f 66 | 20 74 68 65 20 73 74 61 |e top of| the sta|
|00002d10| 63 6b 20 61 6e 64 20 42 | 45 47 49 4e 27 73 20 74 |ck and B|EGIN's t|
|00002d20| 6f 20 69 74 2c 20 61 6e | 64 0a 0a 09 09 69 6e 74 |o it, an|d....int|
|00002d30| 20 79 79 5f 74 6f 70 5f | 73 74 61 74 65 28 29 0a | yy_top_|state().|
|00002d40| 0a 09 20 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 |.. retu|rns the |
|00002d50| 74 6f 70 20 6f 66 20 74 | 68 65 20 73 74 61 63 6b |top of t|he stack|
|00002d60| 20 77 69 74 68 6f 75 74 | 20 61 6c 74 65 72 69 6e | without| alterin|
|00002d70| 67 20 74 68 65 20 73 74 | 61 63 6b 27 73 0a 09 20 |g the st|ack's.. |
|00002d80| 20 63 6f 6e 74 65 6e 74 | 73 2e 0a 0a 09 20 20 54 | content|s.... T|
|00002d90| 68 65 20 73 74 61 72 74 | 20 63 6f 6e 64 69 74 69 |he start| conditi|
|00002da0| 6f 6e 20 73 74 61 63 6b | 20 67 72 6f 77 73 20 64 |on stack| grows d|
|00002db0| 79 6e 61 6d 69 63 61 6c | 6c 79 20 61 6e 64 20 73 |ynamical|ly and s|
|00002dc0| 6f 20 68 61 73 20 6e 6f | 20 62 75 69 6c 74 2d 69 |o has no| built-i|
|00002dd0| 6e 0a 09 20 20 73 69 7a | 65 20 6c 69 6d 69 74 61 |n.. siz|e limita|
|00002de0| 74 69 6f 6e 2e 20 20 49 | 66 20 6d 65 6d 6f 72 79 |tion. I|f memory|
|00002df0| 20 69 73 20 65 78 68 61 | 75 73 74 65 64 2c 20 70 | is exha|usted, p|
|00002e00| 72 6f 67 72 61 6d 20 65 | 78 65 63 75 74 69 6f 6e |rogram e|xecution|
|00002e10| 0a 09 20 20 69 73 20 61 | 62 6f 72 74 65 64 2e 0a |.. is a|borted..|
|00002e20| 0a 09 20 20 54 6f 20 75 | 73 65 20 73 74 61 72 74 |.. To u|se start|
|00002e30| 20 63 6f 6e 64 69 74 69 | 6f 6e 20 73 74 61 63 6b | conditi|on stack|
|00002e40| 73 2c 20 79 6f 75 72 20 | 73 63 61 6e 6e 65 72 20 |s, your |scanner |
|00002e50| 6d 75 73 74 20 69 6e 63 | 6c 75 64 65 0a 09 20 20 |must inc|lude.. |
|00002e60| 61 20 22 25 6f 70 74 69 | 6f 6e 20 73 74 61 63 6b |a "%opti|on stack|
|00002e70| 22 20 64 69 72 65 63 74 | 69 76 65 2e 0a 0a 09 2d |" direct|ive....-|
|00002e80| 20 66 6c 65 78 20 6e 6f | 77 20 73 75 70 70 6f 72 | flex no|w suppor|
|00002e90| 74 73 20 50 4f 53 49 58 | 20 63 68 61 72 61 63 74 |ts POSIX| charact|
|00002ea0| 65 72 20 63 6c 61 73 73 | 20 65 78 70 72 65 73 73 |er class| express|
|00002eb0| 69 6f 6e 73 2e 20 20 54 | 68 65 73 65 0a 09 20 20 |ions. T|hese.. |
|00002ec0| 61 72 65 20 65 78 70 72 | 65 73 73 69 6f 6e 73 20 |are expr|essions |
|00002ed0| 65 6e 63 6c 6f 73 65 64 | 20 69 6e 73 69 64 65 20 |enclosed| inside |
|00002ee0| 22 5b 3a 22 20 61 6e 64 | 20 22 3a 5d 22 20 64 65 |"[:" and| ":]" de|
|00002ef0| 6c 69 6d 69 74 65 72 73 | 20 28 77 68 69 63 68 0a |limiters| (which.|
|00002f00| 09 20 20 74 68 65 6d 73 | 65 6c 76 65 73 20 6d 75 |. thems|elves mu|
|00002f10| 73 74 20 61 70 70 65 61 | 72 20 62 65 74 77 65 65 |st appea|r betwee|
|00002f20| 6e 20 74 68 65 20 27 5b | 27 20 61 6e 64 20 27 5d |n the '[|' and ']|
|00002f30| 27 20 6f 66 20 61 20 63 | 68 61 72 61 63 74 65 72 |' of a c|haracter|
|00002f40| 0a 09 20 20 63 6c 61 73 | 73 3b 20 6f 74 68 65 72 |.. clas|s; other|
|00002f50| 20 65 6c 65 6d 65 6e 74 | 73 20 6d 61 79 20 6f 63 | element|s may oc|
|00002f60| 63 75 72 20 69 6e 73 69 | 64 65 20 74 68 65 20 63 |cur insi|de the c|
|00002f70| 68 61 72 61 63 74 65 72 | 20 63 6c 61 73 73 2c 20 |haracter| class, |
|00002f80| 74 6f 6f 29 2e 0a 09 20 | 20 54 68 65 20 65 78 70 |too)... | The exp|
|00002f90| 72 65 73 73 69 6f 6e 73 | 20 66 6c 65 78 20 72 65 |ressions| flex re|
|00002fa0| 63 6f 67 6e 69 7a 65 73 | 20 61 72 65 3a 0a 0a 09 |cognizes| are:...|
|00002fb0| 09 5b 3a 61 6c 6e 75 6d | 3a 5d 20 5b 3a 61 6c 70 |.[:alnum|:] [:alp|
|00002fc0| 68 61 3a 5d 20 5b 3a 62 | 6c 61 6e 6b 3a 5d 20 5b |ha:] [:b|lank:] [|
|00002fd0| 3a 63 6e 74 72 6c 3a 5d | 20 5b 3a 64 69 67 69 74 |:cntrl:]| [:digit|
|00002fe0| 3a 5d 20 5b 3a 67 72 61 | 70 68 3a 5d 09 0a 09 09 |:] [:gra|ph:]....|
|00002ff0| 5b 3a 6c 6f 77 65 72 3a | 5d 20 5b 3a 70 72 69 6e |[:lower:|] [:prin|
|00003000| 74 3a 5d 20 5b 3a 70 75 | 6e 63 74 3a 5d 20 5b 3a |t:] [:pu|nct:] [:|
|00003010| 73 70 61 63 65 3a 5d 20 | 5b 3a 75 70 70 65 72 3a |space:] |[:upper:|
|00003020| 5d 20 5b 3a 78 64 69 67 | 69 74 3a 5d 0a 0a 09 20 |] [:xdig|it:]... |
|00003030| 20 54 68 65 73 65 20 65 | 78 70 72 65 73 73 69 6f | These e|xpressio|
|00003040| 6e 73 20 61 6c 6c 20 64 | 65 73 69 67 6e 61 74 65 |ns all d|esignate|
|00003050| 20 61 20 73 65 74 20 6f | 66 20 63 68 61 72 61 63 | a set o|f charac|
|00003060| 74 65 72 73 20 65 71 75 | 69 76 61 6c 65 6e 74 20 |ters equ|ivalent |
|00003070| 74 6f 0a 09 20 20 74 68 | 65 20 63 6f 72 72 65 73 |to.. th|e corres|
|00003080| 70 6f 6e 64 69 6e 67 20 | 69 73 58 58 58 20 66 75 |ponding |isXXX fu|
|00003090| 6e 63 74 69 6f 6e 20 28 | 66 6f 72 20 65 78 61 6d |nction (|for exam|
|000030a0| 70 6c 65 2c 20 5b 3a 61 | 6c 6e 75 6d 3a 5d 20 64 |ple, [:a|lnum:] d|
|000030b0| 65 73 69 67 6e 61 74 65 | 73 0a 09 20 20 74 68 6f |esignate|s.. tho|
|000030c0| 73 65 20 63 68 61 72 61 | 63 74 65 72 73 20 66 6f |se chara|cters fo|
|000030d0| 72 20 77 68 69 63 68 20 | 69 73 61 6c 6e 75 6d 28 |r which |isalnum(|
|000030e0| 29 20 72 65 74 75 72 6e | 73 20 74 72 75 65 20 2d |) return|s true -|
|000030f0| 20 69 2e 65 2e 2c 20 61 | 6e 79 0a 09 20 20 61 6c | i.e., a|ny.. al|
|00003100| 70 68 61 62 65 74 69 63 | 20 6f 72 20 6e 75 6d 65 |phabetic| or nume|
|00003110| 72 69 63 29 2e 20 20 53 | 6f 6d 65 20 73 79 73 74 |ric). S|ome syst|
|00003120| 65 6d 73 20 64 6f 6e 27 | 74 20 70 72 6f 76 69 64 |ems don'|t provid|
|00003130| 65 20 69 73 62 6c 61 6e | 6b 28 29 2c 0a 09 20 20 |e isblan|k(),.. |
|00003140| 73 6f 20 66 6c 65 78 20 | 64 65 66 69 6e 65 73 20 |so flex |defines |
|00003150| 5b 3a 62 6c 61 6e 6b 3a | 5d 20 61 73 20 61 20 62 |[:blank:|] as a b|
|00003160| 6c 61 6e 6b 20 6f 72 20 | 61 20 74 61 62 2e 0a 0a |lank or |a tab...|
|00003170| 09 20 20 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |. For e|xample, |
|00003180| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 63 68 |the foll|owing ch|
|00003190| 61 72 61 63 74 65 72 20 | 63 6c 61 73 73 65 73 20 |aracter |classes |
|000031a0| 61 72 65 20 61 6c 6c 20 | 65 71 75 69 76 61 6c 65 |are all |equivale|
|000031b0| 6e 74 3a 0a 0a 09 09 5b | 5b 3a 61 6c 6e 75 6d 3a |nt:....[|[:alnum:|
|000031c0| 5d 5d 0a 09 09 5b 5b 3a | 61 6c 70 68 61 3a 5d 5b |]]...[[:|alpha:][|
|000031d0| 3a 64 69 67 69 74 3a 5d | 0a 09 09 5b 5b 3a 61 6c |:digit:]|...[[:al|
|000031e0| 70 68 61 3a 5d 30 2d 39 | 5d 0a 09 09 5b 61 2d 7a |pha:]0-9|]...[a-z|
|000031f0| 41 2d 5a 30 2d 39 5d 0a | 0a 09 20 20 49 66 20 79 |A-Z0-9].|.. If y|
|00003200| 6f 75 72 20 73 63 61 6e | 6e 65 72 20 69 73 20 63 |our scan|ner is c|
|00003210| 61 73 65 2d 69 6e 73 65 | 6e 73 69 74 69 76 65 20 |ase-inse|nsitive |
|00003220| 28 2d 69 20 66 6c 61 67 | 29 2c 20 74 68 65 6e 20 |(-i flag|), then |
|00003230| 5b 3a 75 70 70 65 72 3a | 5d 0a 09 20 20 61 6e 64 |[:upper:|].. and|
|00003240| 20 5b 3a 6c 6f 77 65 72 | 3a 5d 20 61 72 65 20 65 | [:lower|:] are e|
|00003250| 71 75 69 76 61 6c 65 6e | 74 20 74 6f 20 5b 3a 61 |quivalen|t to [:a|
|00003260| 6c 70 68 61 3a 5d 2e 0a | 0a 09 2d 20 54 68 65 20 |lpha:]..|..- The |
|00003270| 70 72 6f 6d 69 73 65 64 | 20 72 65 77 72 69 74 65 |promised| rewrite|
|00003280| 20 6f 66 20 74 68 65 20 | 43 2b 2b 20 46 6c 65 78 | of the |C++ Flex|
|00003290| 4c 65 78 65 72 20 63 6c | 61 73 73 20 68 61 73 20 |Lexer cl|ass has |
|000032a0| 6e 6f 74 20 79 65 74 0a | 09 20 20 62 65 65 6e 20 |not yet.|. been |
|000032b0| 64 6f 6e 65 2e 20 20 53 | 75 70 70 6f 72 74 20 66 |done. S|upport f|
|000032c0| 6f 72 20 46 6c 65 78 4c | 65 78 65 72 20 69 73 20 |or FlexL|exer is |
|000032d0| 6c 69 6d 69 74 65 64 20 | 61 74 20 74 68 65 20 6d |limited |at the m|
|000032e0| 6f 6d 65 6e 74 20 74 6f | 0a 09 20 20 66 69 78 69 |oment to|.. fixi|
|000032f0| 6e 67 20 73 68 6f 77 2d | 73 74 6f 70 70 65 72 20 |ng show-|stopper |
|00003300| 62 75 67 73 2c 20 73 6f | 2c 20 66 6f 72 20 65 78 |bugs, so|, for ex|
|00003310| 61 6d 70 6c 65 2c 20 74 | 68 65 20 6e 65 77 20 66 |ample, t|he new f|
|00003320| 75 6e 63 74 69 6f 6e 73 | 0a 09 20 20 79 79 5f 73 |unctions|.. yy_s|
|00003330| 63 61 6e 5f 73 74 72 69 | 6e 67 28 29 20 26 20 66 |can_stri|ng() & f|
|00003340| 72 69 65 6e 64 73 20 61 | 72 65 20 6e 6f 74 20 61 |riends a|re not a|
|00003350| 76 61 69 6c 61 62 6c 65 | 20 74 6f 20 46 6c 65 78 |vailable| to Flex|
|00003360| 4c 65 78 65 72 0a 09 20 | 20 6f 62 6a 65 63 74 73 |Lexer.. | objects|
|00003370| 2e 0a 0a 09 2d 20 54 68 | 65 20 6e 65 77 20 6d 61 |....- Th|e new ma|
|00003380| 63 72 6f 0a 0a 09 09 79 | 79 5f 73 65 74 5f 69 6e |cro....y|y_set_in|
|00003390| 74 65 72 61 63 74 69 76 | 65 28 69 73 5f 69 6e 74 |teractiv|e(is_int|
|000033a0| 65 72 61 63 74 69 76 65 | 29 0a 0a 09 20 20 63 61 |eractive|)... ca|
|000033b0| 6e 20 62 65 20 75 73 65 | 64 20 74 6f 20 63 6f 6e |n be use|d to con|
|000033c0| 74 72 6f 6c 20 77 68 65 | 74 68 65 72 20 74 68 65 |trol whe|ther the|
|000033d0| 20 63 75 72 72 65 6e 74 | 20 62 75 66 66 65 72 20 | current| buffer |
|000033e0| 69 73 20 63 6f 6e 73 69 | 64 65 72 65 64 0a 09 20 |is consi|dered.. |
|000033f0| 20 22 69 6e 74 65 72 61 | 63 74 69 76 65 22 2e 20 | "intera|ctive". |
|00003400| 20 41 6e 20 69 6e 74 65 | 72 61 63 74 69 76 65 20 | An inte|ractive |
|00003410| 62 75 66 66 65 72 20 69 | 73 20 70 72 6f 63 65 73 |buffer i|s proces|
|00003420| 73 65 64 20 6d 6f 72 65 | 20 73 6c 6f 77 6c 79 2c |sed more| slowly,|
|00003430| 0a 09 20 20 62 75 74 20 | 6d 75 73 74 20 62 65 20 |.. but |must be |
|00003440| 75 73 65 64 20 77 68 65 | 6e 20 74 68 65 20 73 63 |used whe|n the sc|
|00003450| 61 6e 6e 65 72 27 73 20 | 69 6e 70 75 74 20 73 6f |anner's |input so|
|00003460| 75 72 63 65 20 69 73 20 | 69 6e 64 65 65 64 0a 09 |urce is |indeed..|
|00003470| 20 20 69 6e 74 65 72 61 | 63 74 69 76 65 20 74 6f | intera|ctive to|
|00003480| 20 61 76 6f 69 64 20 70 | 72 6f 62 6c 65 6d 73 20 | avoid p|roblems |
|00003490| 64 75 65 20 74 6f 20 77 | 61 69 74 69 6e 67 20 74 |due to w|aiting t|
|000034a0| 6f 20 66 69 6c 6c 20 62 | 75 66 66 65 72 73 0a 09 |o fill b|uffers..|
|000034b0| 20 20 28 73 65 65 20 74 | 68 65 20 64 69 73 63 75 | (see t|he discu|
|000034c0| 73 73 69 6f 6e 20 6f 66 | 20 74 68 65 20 2d 49 20 |ssion of| the -I |
|000034d0| 66 6c 61 67 20 69 6e 20 | 66 6c 65 78 2e 31 29 2e |flag in |flex.1).|
|000034e0| 20 20 41 20 6e 6f 6e 2d | 7a 65 72 6f 20 76 61 6c | A non-|zero val|
|000034f0| 75 65 0a 09 20 20 69 6e | 20 74 68 65 20 6d 61 63 |ue.. in| the mac|
|00003500| 72 6f 20 69 6e 76 6f 63 | 61 74 69 6f 6e 20 6d 61 |ro invoc|ation ma|
|00003510| 72 6b 73 20 74 68 65 20 | 62 75 66 66 65 72 20 61 |rks the |buffer a|
|00003520| 73 20 69 6e 74 65 72 61 | 63 74 69 76 65 2c 20 61 |s intera|ctive, a|
|00003530| 20 7a 65 72 6f 0a 09 20 | 20 76 61 6c 75 65 20 61 | zero.. | value a|
|00003540| 73 20 6e 6f 6e 2d 69 6e | 74 65 72 61 63 74 69 76 |s non-in|teractiv|
|00003550| 65 2e 20 20 4e 6f 74 65 | 20 74 68 61 74 20 75 73 |e. Note| that us|
|00003560| 65 20 6f 66 20 74 68 69 | 73 20 6d 61 63 72 6f 20 |e of thi|s macro |
|00003570| 6f 76 65 72 72 69 64 65 | 73 0a 09 20 20 22 25 6f |override|s.. "%o|
|00003580| 70 74 69 6f 6e 20 61 6c | 77 61 79 73 2d 69 6e 74 |ption al|ways-int|
|00003590| 65 72 61 63 74 69 76 65 | 22 20 6f 72 20 22 25 6f |eractive|" or "%o|
|000035a0| 70 74 69 6f 6e 20 6e 65 | 76 65 72 2d 69 6e 74 65 |ption ne|ver-inte|
|000035b0| 72 61 63 74 69 76 65 22 | 2e 0a 0a 09 20 20 79 79 |ractive"|.... yy|
|000035c0| 5f 73 65 74 5f 69 6e 74 | 65 72 61 63 74 69 76 65 |_set_int|eractive|
|000035d0| 28 29 20 6d 75 73 74 20 | 62 65 20 69 6e 76 6f 6b |() must |be invok|
|000035e0| 65 64 20 70 72 69 6f 72 | 20 74 6f 20 62 65 67 69 |ed prior| to begi|
|000035f0| 6e 6e 69 6e 67 20 74 6f | 0a 09 20 20 73 63 61 6e |nning to|.. scan|
|00003600| 20 74 68 65 20 62 75 66 | 66 65 72 2e 0a 0a 09 2d | the buf|fer....-|
|00003610| 20 54 68 65 20 6e 65 77 | 20 6d 61 63 72 6f 0a 0a | The new| macro..|
|00003620| 09 09 79 79 5f 73 65 74 | 5f 62 6f 6c 28 61 74 5f |..yy_set|_bol(at_|
|00003630| 62 6f 6c 29 0a 0a 09 20 | 20 63 61 6e 20 62 65 20 |bol)... | can be |
|00003640| 75 73 65 64 20 74 6f 20 | 63 6f 6e 74 72 6f 6c 20 |used to |control |
|00003650| 77 68 65 74 68 65 72 20 | 74 68 65 20 63 75 72 72 |whether |the curr|
|00003660| 65 6e 74 20 62 75 66 66 | 65 72 27 73 20 73 63 61 |ent buff|er's sca|
|00003670| 6e 6e 69 6e 67 0a 09 20 | 20 63 6f 6e 74 65 78 74 |nning.. | context|
|00003680| 20 66 6f 72 20 74 68 65 | 20 6e 65 78 74 20 74 6f | for the| next to|
|00003690| 6b 65 6e 20 6d 61 74 63 | 68 20 69 73 20 64 6f 6e |ken matc|h is don|
|000036a0| 65 20 61 73 20 74 68 6f | 75 67 68 20 61 74 20 74 |e as tho|ugh at t|
|000036b0| 68 65 0a 09 20 20 62 65 | 67 69 6e 6e 69 6e 67 20 |he.. be|ginning |
|000036c0| 6f 66 20 61 20 6c 69 6e | 65 20 28 6e 6f 6e 2d 7a |of a lin|e (non-z|
|000036d0| 65 72 6f 20 6d 61 63 72 | 6f 20 61 72 67 75 6d 65 |ero macr|o argume|
|000036e0| 6e 74 3b 20 6d 61 6b 65 | 73 20 27 5e 27 20 61 6e |nt; make|s '^' an|
|000036f0| 63 68 6f 72 65 64 0a 09 | 20 20 72 75 6c 65 73 20 |chored..| rules |
|00003700| 61 63 74 69 76 65 29 20 | 6f 72 20 6e 6f 74 20 61 |active) |or not a|
|00003710| 74 20 74 68 65 20 62 65 | 67 69 6e 6e 69 6e 67 20 |t the be|ginning |
|00003720| 6f 66 20 61 20 6c 69 6e | 65 20 28 7a 65 72 6f 20 |of a lin|e (zero |
|00003730| 61 72 67 75 6d 65 6e 74 | 2c 0a 09 20 20 27 5e 27 |argument|,.. '^'|
|00003740| 20 72 75 6c 65 73 20 69 | 6e 61 63 74 69 76 65 29 | rules i|nactive)|
|00003750| 2e 0a 0a 09 2d 20 52 65 | 6c 61 74 65 64 20 74 6f |....- Re|lated to|
|00003760| 20 74 68 69 73 20 63 68 | 61 6e 67 65 2c 20 74 68 | this ch|ange, th|
|00003770| 65 20 6d 65 63 68 61 6e | 69 73 6d 20 66 6f 72 20 |e mechan|ism for |
|00003780| 64 65 74 65 72 6d 69 6e | 69 6e 67 20 77 68 65 6e |determin|ing when|
|00003790| 20 61 20 73 63 61 6e 20 | 69 73 0a 09 20 20 73 74 | a scan |is.. st|
|000037a0| 61 72 74 69 6e 67 20 61 | 74 20 74 68 65 20 62 65 |arting a|t the be|
|000037b0| 67 69 6e 6e 69 6e 67 20 | 6f 66 20 61 20 6c 69 6e |ginning |of a lin|
|000037c0| 65 20 68 61 73 20 63 68 | 61 6e 67 65 64 2e 20 20 |e has ch|anged. |
|000037d0| 49 74 20 75 73 65 64 20 | 74 6f 20 62 65 0a 09 20 |It used |to be.. |
|000037e0| 20 74 68 61 74 20 27 5e | 27 20 77 61 73 20 61 63 | that '^|' was ac|
|000037f0| 74 69 76 65 20 69 66 66 | 20 74 68 65 20 63 68 61 |tive iff| the cha|
|00003800| 72 61 63 74 65 72 20 70 | 72 69 6f 72 20 74 6f 20 |racter p|rior to |
|00003810| 74 68 61 74 20 61 74 20 | 77 68 69 63 68 20 74 68 |that at |which th|
|00003820| 65 0a 09 20 20 73 63 61 | 6e 20 73 74 61 72 74 65 |e.. sca|n starte|
|00003830| 64 20 77 61 73 20 61 20 | 6e 65 77 6c 69 6e 65 2e |d was a |newline.|
|00003840| 20 20 54 68 65 20 6d 65 | 63 68 61 6e 69 73 6d 20 | The me|chanism |
|00003850| 6e 6f 77 20 69 73 20 74 | 68 61 74 20 27 5e 27 20 |now is t|hat '^' |
|00003860| 69 73 0a 09 20 20 61 63 | 74 69 76 65 20 69 66 66 |is.. ac|tive iff|
|00003870| 20 74 68 65 20 6c 61 73 | 74 20 74 6f 6b 65 6e 20 | the las|t token |
|00003880| 65 6e 64 65 64 20 69 6e | 20 61 20 6e 65 77 6c 69 |ended in| a newli|
|00003890| 6e 65 20 28 6f 72 20 74 | 68 65 20 6c 61 73 74 20 |ne (or t|he last |
|000038a0| 63 61 6c 6c 20 74 6f 0a | 09 20 20 69 6e 70 75 74 |call to.|. input|
|000038b0| 28 29 20 72 65 74 75 72 | 6e 65 64 20 61 20 6e 65 |() retur|ned a ne|
|000038c0| 77 6c 69 6e 65 29 2e 20 | 20 46 6f 72 20 6d 6f 73 |wline). | For mos|
|000038d0| 74 20 75 73 65 72 73 2c | 20 74 68 65 20 64 69 66 |t users,| the dif|
|000038e0| 66 65 72 65 6e 63 65 20 | 69 6e 0a 09 20 20 6d 65 |ference |in.. me|
|000038f0| 63 68 61 6e 69 73 6d 73 | 20 69 73 20 6e 65 67 6c |chanisms| is negl|
|00003900| 69 67 69 62 6c 65 2e 20 | 20 57 68 65 72 65 20 69 |igible. | Where i|
|00003910| 74 20 77 69 6c 6c 20 6d | 61 6b 65 20 61 20 64 69 |t will m|ake a di|
|00003920| 66 66 65 72 65 6e 63 65 | 2c 0a 09 20 20 68 6f 77 |fference|,.. how|
|00003930| 65 76 65 72 2c 20 69 73 | 20 69 66 20 75 6e 70 75 |ever, is| if unpu|
|00003940| 74 28 29 20 6f 72 20 79 | 79 6c 65 73 73 28 29 20 |t() or y|yless() |
|00003950| 69 73 20 75 73 65 64 20 | 74 6f 20 61 6c 74 65 72 |is used |to alter|
|00003960| 20 74 68 65 20 69 6e 70 | 75 74 0a 09 20 20 73 74 | the inp|ut.. st|
|00003970| 72 65 61 6d 2e 20 20 57 | 68 65 6e 20 69 6e 20 64 |ream. W|hen in d|
|00003980| 6f 75 62 74 2c 20 75 73 | 65 20 79 79 5f 73 65 74 |oubt, us|e yy_set|
|00003990| 5f 62 6f 6c 28 29 2e 0a | 0a 09 2d 20 54 68 65 20 |_bol()..|..- The |
|000039a0| 6e 65 77 20 62 65 67 69 | 6e 6e 69 6e 67 2d 6f 66 |new begi|nning-of|
|000039b0| 2d 6c 69 6e 65 20 6d 65 | 63 68 61 6e 69 73 6d 20 |-line me|chanism |
|000039c0| 69 6e 76 6f 6c 76 65 64 | 20 63 68 61 6e 67 69 6e |involved| changin|
|000039d0| 67 20 73 6f 6d 65 20 66 | 61 69 72 6c 79 0a 09 20 |g some f|airly.. |
|000039e0| 20 74 77 69 73 74 65 64 | 20 63 6f 64 65 2c 20 73 | twisted| code, s|
|000039f0| 6f 20 69 74 20 6d 61 79 | 20 68 61 76 65 20 69 6e |o it may| have in|
|00003a00| 74 72 6f 64 75 63 65 64 | 20 62 75 67 73 20 2d 20 |troduced| bugs - |
|00003a10| 62 65 77 61 72 65 20 2e | 2e 2e 0a 0a 09 2d 20 54 |beware .|.....- T|
|00003a20| 68 65 20 6d 61 63 72 6f | 20 59 59 5f 41 54 5f 42 |he macro| YY_AT_B|
|00003a30| 4f 4c 28 29 20 72 65 74 | 75 72 6e 73 20 74 72 75 |OL() ret|urns tru|
|00003a40| 65 20 69 66 20 74 68 65 | 20 6e 65 78 74 20 74 6f |e if the| next to|
|00003a50| 6b 65 6e 20 73 63 61 6e | 6e 65 64 20 66 72 6f 6d |ken scan|ned from|
|00003a60| 0a 09 20 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |.. the |current |
|00003a70| 62 75 66 66 65 72 20 77 | 69 6c 6c 20 68 61 76 65 |buffer w|ill have|
|00003a80| 20 27 5e 27 20 72 75 6c | 65 73 20 61 63 74 69 76 | '^' rul|es activ|
|00003a90| 65 2c 20 66 61 6c 73 65 | 20 6f 74 68 65 72 77 69 |e, false| otherwi|
|00003aa0| 73 65 2e 0a 0a 09 2d 20 | 54 68 65 20 6e 65 77 20 |se....- |The new |
|00003ab0| 66 75 6e 63 74 69 6f 6e | 0a 0a 09 09 76 6f 69 64 |function|....void|
|00003ac0| 20 79 79 5f 66 6c 75 73 | 68 5f 62 75 66 66 65 72 | yy_flus|h_buffer|
|00003ad0| 28 20 73 74 72 75 63 74 | 20 79 79 5f 62 75 66 66 |( struct| yy_buff|
|00003ae0| 65 72 5f 73 74 61 74 65 | 2a 20 62 20 29 0a 0a 09 |er_state|* b )...|
|00003af0| 20 20 66 6c 75 73 68 65 | 73 20 74 68 65 20 63 6f | flushe|s the co|
|00003b00| 6e 74 65 6e 74 73 20 6f | 66 20 74 68 65 20 63 75 |ntents o|f the cu|
|00003b10| 72 72 65 6e 74 20 62 75 | 66 66 65 72 20 28 69 2e |rrent bu|ffer (i.|
|00003b20| 65 2e 2c 20 6e 65 78 74 | 20 74 69 6d 65 0a 09 20 |e., next| time.. |
|00003b30| 20 74 68 65 20 73 63 61 | 6e 6e 65 72 20 61 74 74 | the sca|nner att|
|00003b40| 65 6d 70 74 73 20 74 6f | 20 6d 61 74 63 68 20 61 |empts to| match a|
|00003b50| 20 74 6f 6b 65 6e 20 75 | 73 69 6e 67 20 62 20 61 | token u|sing b a|
|00003b60| 73 20 74 68 65 20 63 75 | 72 72 65 6e 74 0a 09 20 |s the cu|rrent.. |
|00003b70| 20 62 75 66 66 65 72 2c | 20 69 74 20 77 69 6c 6c | buffer,| it will|
|00003b80| 20 62 65 67 69 6e 20 62 | 79 20 69 6e 76 6f 6b 69 | begin b|y invoki|
|00003b90| 6e 67 20 59 59 5f 49 4e | 50 55 54 20 74 6f 20 66 |ng YY_IN|PUT to f|
|00003ba0| 69 6c 6c 20 74 68 65 20 | 62 75 66 66 65 72 29 2e |ill the |buffer).|
|00003bb0| 0a 09 20 20 54 68 69 73 | 20 72 6f 75 74 69 6e 65 |.. This| routine|
|00003bc0| 20 69 73 20 61 6c 73 6f | 20 61 76 61 69 6c 61 62 | is also| availab|
|00003bd0| 6c 65 20 74 6f 20 43 2b | 2b 20 73 63 61 6e 6e 65 |le to C+|+ scanne|
|00003be0| 72 73 20 28 75 6e 6c 69 | 6b 65 20 73 6f 6d 65 0a |rs (unli|ke some.|
|00003bf0| 09 20 20 6f 66 20 74 68 | 65 20 6f 74 68 65 72 20 |. of th|e other |
|00003c00| 6e 65 77 20 72 6f 75 74 | 69 6e 65 73 29 2e 0a 0a |new rout|ines)...|
|00003c10| 09 20 20 54 68 65 20 72 | 65 6c 61 74 65 64 20 6d |. The r|elated m|
|00003c20| 61 63 72 6f 0a 0a 09 09 | 59 59 5f 46 4c 55 53 48 |acro....|YY_FLUSH|
|00003c30| 5f 42 55 46 46 45 52 0a | 0a 09 20 20 66 6c 75 73 |_BUFFER.|.. flus|
|00003c40| 68 65 73 20 74 68 65 20 | 63 6f 6e 74 65 6e 74 73 |hes the |contents|
|00003c50| 20 6f 66 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | of the |current |
|00003c60| 62 75 66 66 65 72 2e 0a | 0a 09 2d 20 41 20 6e 65 |buffer..|..- A ne|
|00003c70| 77 20 22 2d 6f 6f 75 74 | 70 75 74 22 20 6f 70 74 |w "-oout|put" opt|
|00003c80| 69 6f 6e 20 77 72 69 74 | 65 73 20 74 68 65 20 67 |ion writ|es the g|
|00003c90| 65 6e 65 72 61 74 65 64 | 20 73 63 61 6e 6e 65 72 |enerated| scanner|
|00003ca0| 20 74 6f 20 22 6f 75 74 | 70 75 74 22 2e 0a 09 20 | to "out|put"... |
|00003cb0| 20 49 66 20 75 73 65 64 | 20 77 69 74 68 20 2d 74 | If used| with -t|
|00003cc0| 2c 20 74 68 65 20 73 63 | 61 6e 6e 65 72 20 69 73 |, the sc|anner is|
|00003cd0| 20 73 74 69 6c 6c 20 77 | 72 69 74 74 65 6e 20 74 | still w|ritten t|
|00003ce0| 6f 20 73 74 64 6f 75 74 | 2c 20 62 75 74 0a 09 20 |o stdout|, but.. |
|00003cf0| 20 69 74 73 20 69 6e 74 | 65 72 6e 61 6c 20 23 6c | its int|ernal #l|
|00003d00| 69 6e 65 20 64 69 72 65 | 63 74 69 76 65 73 20 28 |ine dire|ctives (|
|00003d10| 73 65 65 20 70 72 65 76 | 69 6f 75 73 20 69 74 65 |see prev|ious ite|
|00003d20| 6d 29 20 75 73 65 20 22 | 6f 75 74 70 75 74 22 2e |m) use "|output".|
|00003d30| 0a 0a 09 2d 20 46 6c 65 | 78 20 6e 6f 77 20 67 65 |...- Fle|x now ge|
|00003d40| 6e 65 72 61 74 65 73 20 | 23 6c 69 6e 65 20 64 69 |nerates |#line di|
|00003d50| 72 65 63 74 69 76 65 73 | 20 72 65 6c 61 74 69 6e |rectives| relatin|
|00003d60| 67 20 74 68 65 20 63 6f | 64 65 20 69 74 0a 09 20 |g the co|de it.. |
|00003d70| 20 70 72 6f 64 75 63 65 | 73 20 74 6f 20 74 68 65 | produce|s to the|
|00003d80| 20 6f 75 74 70 75 74 20 | 66 69 6c 65 3b 20 74 68 | output |file; th|
|00003d90| 69 73 20 6d 65 61 6e 73 | 20 74 68 61 74 20 65 72 |is means| that er|
|00003da0| 72 6f 72 20 6d 65 73 73 | 61 67 65 73 0a 09 20 20 |ror mess|ages.. |
|00003db0| 69 6e 20 74 68 65 20 66 | 6c 65 78 2d 67 65 6e 65 |in the f|lex-gene|
|00003dc0| 72 61 74 65 64 20 63 6f | 64 65 20 73 68 6f 75 6c |rated co|de shoul|
|00003dd0| 64 20 62 65 20 63 6f 72 | 72 65 63 74 6c 79 20 70 |d be cor|rectly p|
|00003de0| 69 6e 70 6f 69 6e 74 65 | 64 2e 0a 0a 09 2d 20 57 |inpointe|d....- W|
|00003df0| 68 65 6e 20 67 65 6e 65 | 72 61 74 69 6e 67 20 23 |hen gene|rating #|
|00003e00| 6c 69 6e 65 20 64 69 72 | 65 63 74 69 76 65 73 2c |line dir|ectives,|
|00003e10| 20 66 69 6c 65 6e 61 6d | 65 73 20 77 69 74 68 20 | filenam|es with |
|00003e20| 65 6d 62 65 64 64 65 64 | 20 27 5c 27 73 0a 09 20 |embedded| '\'s.. |
|00003e30| 20 68 61 76 65 20 74 68 | 6f 73 65 20 63 68 61 72 | have th|ose char|
|00003e40| 61 63 74 65 72 73 20 65 | 73 63 61 70 65 64 20 28 |acters e|scaped (|
|00003e50| 69 2e 65 2e 2c 20 74 75 | 72 6e 65 64 20 69 6e 74 |i.e., tu|rned int|
|00003e60| 6f 20 27 5c 5c 27 29 2e | 20 20 54 68 69 73 0a 09 |o '\\').| This..|
|00003e70| 20 20 66 65 61 74 75 72 | 65 20 68 65 6c 70 73 20 | featur|e helps |
|00003e80| 77 69 74 68 20 72 65 70 | 6f 72 74 69 6e 67 20 66 |with rep|orting f|
|00003e90| 69 6c 65 6e 61 6d 65 73 | 20 66 6f 72 20 73 6f 6d |ilenames| for som|
|00003ea0| 65 20 4d 53 2d 44 4f 53 | 20 61 6e 64 20 4f 53 2f |e MS-DOS| and OS/|
|00003eb0| 32 0a 09 20 20 73 79 73 | 74 65 6d 73 2e 0a 0a 09 |2.. sys|tems....|
|00003ec0| 2d 20 54 68 65 20 46 6c | 65 78 4c 65 78 65 72 20 |- The Fl|exLexer |
|00003ed0| 63 6c 61 73 73 20 69 6e | 63 6c 75 64 65 73 20 74 |class in|cludes t|
|00003ee0| 77 6f 20 6e 65 77 20 70 | 75 62 6c 69 63 20 6d 65 |wo new p|ublic me|
|00003ef0| 6d 62 65 72 20 66 75 6e | 63 74 69 6f 6e 73 3a 0a |mber fun|ctions:.|
|00003f00| 0a 09 09 76 69 72 74 75 | 61 6c 20 76 6f 69 64 20 |...virtu|al void |
|00003f10| 73 77 69 74 63 68 5f 73 | 74 72 65 61 6d 73 28 20 |switch_s|treams( |
|00003f20| 69 73 74 72 65 61 6d 2a | 20 6e 65 77 5f 69 6e 20 |istream*| new_in |
|00003f30| 3d 20 30 2c 0a 09 09 09 | 09 09 09 6f 73 74 72 65 |= 0,....|...ostre|
|00003f40| 61 6d 2a 20 6e 65 77 5f | 6f 75 74 20 3d 20 30 20 |am* new_|out = 0 |
|00003f50| 29 0a 0a 09 20 20 72 65 | 61 73 73 69 67 6e 73 20 |)... re|assigns |
|00003f60| 79 79 69 6e 20 74 6f 20 | 6e 65 77 5f 69 6e 20 28 |yyin to |new_in (|
|00003f70| 69 66 20 6e 6f 6e 2d 6e | 69 6c 29 20 61 6e 64 20 |if non-n|il) and |
|00003f80| 79 79 6f 75 74 20 74 6f | 20 6e 65 77 5f 6f 75 74 |yyout to| new_out|
|00003f90| 0a 09 20 20 28 64 69 74 | 74 6f 29 2c 20 64 65 6c |.. (dit|to), del|
|00003fa0| 65 74 69 6e 67 20 74 68 | 65 20 70 72 65 76 69 6f |eting th|e previo|
|00003fb0| 75 73 20 69 6e 70 75 74 | 20 62 75 66 66 65 72 20 |us input| buffer |
|00003fc0| 69 66 20 79 79 69 6e 20 | 69 73 0a 09 20 20 72 65 |if yyin |is.. re|
|00003fd0| 61 73 73 69 67 6e 65 64 | 2e 20 20 49 74 20 69 73 |assigned|. It is|
|00003fe0| 20 75 73 65 64 20 62 79 | 3a 0a 0a 09 09 69 6e 74 | used by|:....int|
|00003ff0| 20 79 79 6c 65 78 28 20 | 69 73 74 72 65 61 6d 2a | yylex( |istream*|
|00004000| 20 6e 65 77 5f 69 6e 20 | 3d 20 30 2c 20 6f 73 74 | new_in |= 0, ost|
|00004010| 72 65 61 6d 2a 20 6e 65 | 77 5f 6f 75 74 20 3d 20 |ream* ne|w_out = |
|00004020| 30 20 29 0a 0a 09 20 20 | 77 68 69 63 68 20 66 69 |0 )... |which fi|
|00004030| 72 73 74 20 63 61 6c 6c | 73 20 73 77 69 74 63 68 |rst call|s switch|
|00004040| 5f 73 74 72 65 61 6d 73 | 28 29 20 61 6e 64 20 74 |_streams|() and t|
|00004050| 68 65 6e 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 |hen retu|rns the |
|00004060| 76 61 6c 75 65 0a 09 20 | 20 6f 66 20 63 61 6c 6c |value.. | of call|
|00004070| 69 6e 67 20 79 79 6c 65 | 78 28 29 2e 0a 0a 09 2d |ing yyle|x()....-|
|00004080| 20 43 2b 2b 20 73 63 61 | 6e 6e 65 72 73 20 6e 6f | C++ sca|nners no|
|00004090| 77 20 68 61 76 65 20 79 | 79 5f 66 6c 65 78 5f 64 |w have y|y_flex_d|
|000040a0| 65 62 75 67 20 61 73 20 | 61 20 6d 65 6d 62 65 72 |ebug as |a member|
|000040b0| 20 76 61 72 69 61 62 6c | 65 20 6f 66 0a 09 20 20 | variabl|e of.. |
|000040c0| 46 6c 65 78 4c 65 78 65 | 72 20 72 61 74 68 65 72 |FlexLexe|r rather|
|000040d0| 20 74 68 61 6e 20 61 20 | 67 6c 6f 62 61 6c 2c 20 | than a |global, |
|000040e0| 61 6e 64 20 6d 65 6d 62 | 65 72 20 66 75 6e 63 74 |and memb|er funct|
|000040f0| 69 6f 6e 73 20 66 6f 72 | 20 74 65 73 74 69 6e 67 |ions for| testing|
|00004100| 0a 09 20 20 61 6e 64 20 | 73 65 74 74 69 6e 67 20 |.. and |setting |
|00004110| 69 74 2e 0a 0a 09 2d 20 | 57 68 65 6e 20 67 65 6e |it....- |When gen|
|00004120| 65 72 61 74 69 6e 67 20 | 61 20 43 2b 2b 20 73 63 |erating |a C++ sc|
|00004130| 61 6e 6e 69 6e 67 20 63 | 6c 61 73 73 2c 20 79 6f |anning c|lass, yo|
|00004140| 75 20 63 61 6e 20 6e 6f | 77 20 75 73 65 0a 0a 09 |u can no|w use...|
|00004150| 09 25 6f 70 74 69 6f 6e | 20 79 79 63 6c 61 73 73 |.%option| yyclass|
|00004160| 3d 22 66 6f 6f 22 0a 0a | 09 20 20 74 6f 20 69 6e |="foo"..|. to in|
|00004170| 66 6f 72 6d 20 66 6c 65 | 78 20 74 68 61 74 20 79 |form fle|x that y|
|00004180| 6f 75 20 68 61 76 65 20 | 64 65 72 69 76 65 64 20 |ou have |derived |
|00004190| 22 66 6f 6f 22 20 61 73 | 20 61 20 73 75 62 63 6c |"foo" as| a subcl|
|000041a0| 61 73 73 20 6f 66 0a 09 | 20 20 79 79 46 6c 65 78 |ass of..| yyFlex|
|000041b0| 4c 65 78 65 72 2c 20 73 | 6f 20 66 6c 65 78 20 77 |Lexer, s|o flex w|
|000041c0| 69 6c 6c 20 70 6c 61 63 | 65 20 79 6f 75 72 20 61 |ill plac|e your a|
|000041d0| 63 74 69 6f 6e 73 20 69 | 6e 20 74 68 65 20 6d 65 |ctions i|n the me|
|000041e0| 6d 62 65 72 0a 09 20 20 | 66 75 6e 63 74 69 6f 6e |mber.. |function|
|000041f0| 20 66 6f 6f 3a 3a 79 79 | 6c 65 78 28 29 20 69 6e | foo::yy|lex() in|
|00004200| 73 74 65 61 64 20 6f 66 | 20 79 79 46 6c 65 78 4c |stead of| yyFlexL|
|00004210| 65 78 65 72 3a 3a 79 79 | 6c 65 78 28 29 2e 20 20 |exer::yy|lex(). |
|00004220| 49 74 20 61 6c 73 6f 0a | 09 20 20 67 65 6e 65 72 |It also.|. gener|
|00004230| 61 74 65 73 20 61 20 79 | 79 46 6c 65 78 4c 65 78 |ates a y|yFlexLex|
|00004240| 65 72 3a 3a 79 79 6c 65 | 78 28 29 20 6d 65 6d 62 |er::yyle|x() memb|
|00004250| 65 72 20 66 75 6e 63 74 | 69 6f 6e 20 74 68 61 74 |er funct|ion that|
|00004260| 20 67 65 6e 65 72 61 74 | 65 73 20 61 0a 09 20 20 | generat|es a.. |
|00004270| 72 75 6e 2d 74 69 6d 65 | 20 65 72 72 6f 72 20 69 |run-time| error i|
|00004280| 66 20 63 61 6c 6c 65 64 | 20 28 62 79 20 69 6e 76 |f called| (by inv|
|00004290| 6f 6b 69 6e 67 20 79 79 | 46 6c 65 78 4c 65 78 65 |oking yy|FlexLexe|
|000042a0| 72 3a 3a 4c 65 78 65 72 | 45 72 72 6f 72 28 29 29 |r::Lexer|Error())|
|000042b0| 2e 0a 09 20 20 54 68 69 | 73 20 66 65 61 74 75 72 |... Thi|s featur|
|000042c0| 65 20 69 73 20 6e 65 63 | 65 73 73 61 72 79 20 69 |e is nec|essary i|
|000042d0| 66 20 79 6f 75 72 20 73 | 75 62 63 6c 61 73 73 20 |f your s|ubclass |
|000042e0| 22 66 6f 6f 22 20 69 6e | 74 72 6f 64 75 63 65 73 |"foo" in|troduces|
|000042f0| 20 73 6f 6d 65 0a 09 20 | 20 61 64 64 69 74 69 6f | some.. | additio|
|00004300| 6e 61 6c 20 6d 65 6d 62 | 65 72 20 66 75 6e 63 74 |nal memb|er funct|
|00004310| 69 6f 6e 73 20 6f 72 20 | 76 61 72 69 61 62 6c 65 |ions or |variable|
|00004320| 73 20 74 68 61 74 20 79 | 6f 75 20 6e 65 65 64 20 |s that y|ou need |
|00004330| 74 6f 20 61 63 63 65 73 | 73 0a 09 20 20 66 72 6f |to acces|s.. fro|
|00004340| 6d 20 79 79 6c 65 78 28 | 29 2e 0a 0a 09 2d 20 43 |m yylex(|)....- C|
|00004350| 75 72 72 65 6e 74 20 74 | 65 78 69 6e 66 6f 20 66 |urrent t|exinfo f|
|00004360| 69 6c 65 73 20 69 6e 20 | 4d 49 53 43 2f 74 65 78 |iles in |MISC/tex|
|00004370| 69 6e 66 6f 2c 20 63 6f | 6e 74 72 69 62 75 74 65 |info, co|ntribute|
|00004380| 64 20 62 79 20 46 72 61 | 6e 63 6f 69 73 0a 09 20 |d by Fra|ncois.. |
|00004390| 20 50 69 6e 61 72 64 2e | 0a 0a 09 2d 20 59 6f 75 | Pinard.|...- You|
|000043a0| 20 63 61 6e 20 6e 6f 77 | 20 63 68 61 6e 67 65 20 | can now| change |
|000043b0| 74 68 65 20 6e 61 6d 65 | 20 22 66 6c 65 78 22 20 |the name| "flex" |
|000043c0| 74 6f 20 73 6f 6d 65 74 | 68 69 6e 67 20 65 6c 73 |to somet|hing els|
|000043d0| 65 20 28 65 2e 67 2e 2c | 20 22 6c 65 78 22 29 0a |e (e.g.,| "lex").|
|000043e0| 09 20 20 62 79 20 72 65 | 64 65 66 69 6e 69 6e 67 |. by re|defining|
|000043f0| 20 24 28 46 4c 45 58 29 | 20 69 6e 20 74 68 65 20 | $(FLEX)| in the |
|00004400| 4d 61 6b 65 66 69 6c 65 | 2e 0a 0a 09 2d 20 54 77 |Makefile|....- Tw|
|00004410| 6f 20 62 75 67 73 20 28 | 6f 6e 65 20 73 65 72 69 |o bugs (|one seri|
|00004420| 6f 75 73 29 20 74 68 61 | 74 20 63 6f 75 6c 64 20 |ous) tha|t could |
|00004430| 63 61 75 73 65 20 22 62 | 69 67 63 68 65 63 6b 22 |cause "b|igcheck"|
|00004440| 20 74 6f 20 66 61 69 6c | 20 68 61 76 65 0a 09 20 | to fail| have.. |
|00004450| 20 62 65 65 6e 20 66 69 | 78 65 64 2e 0a 0a 09 2d | been fi|xed....-|
|00004460| 20 41 20 6e 75 6d 62 65 | 72 20 6f 66 20 70 6f 72 | A numbe|r of por|
|00004470| 74 61 62 69 6c 69 74 79 | 2f 63 6f 6e 66 69 67 75 |tability|/configu|
|00004480| 72 61 74 69 6f 6e 20 63 | 68 61 6e 67 65 73 20 68 |ration c|hanges h|
|00004490| 61 76 65 20 62 65 65 6e | 20 6d 61 64 65 0a 09 20 |ave been| made.. |
|000044a0| 20 66 6f 72 20 65 61 73 | 69 65 72 20 70 6f 72 74 | for eas|ier port|
|000044b0| 61 62 69 6c 69 74 79 2e | 0a 0a 09 2d 20 59 6f 75 |ability.|...- You|
|000044c0| 20 63 61 6e 20 75 73 65 | 20 22 59 59 53 54 41 54 | can use| "YYSTAT|
|000044d0| 45 22 20 69 6e 20 79 6f | 75 72 20 73 63 61 6e 6e |E" in yo|ur scann|
|000044e0| 65 72 20 61 73 20 61 6e | 20 61 6c 69 61 73 20 66 |er as an| alias f|
|000044f0| 6f 72 20 59 59 5f 53 54 | 41 52 54 0a 09 20 20 28 |or YY_ST|ART.. (|
|00004500| 66 6f 72 20 41 54 26 54 | 20 6c 65 78 20 63 6f 6d |for AT&T| lex com|
|00004510| 70 61 74 69 62 69 6c 69 | 74 79 29 2e 0a 0a 09 2d |patibili|ty)....-|
|00004520| 20 69 6e 70 75 74 28 29 | 20 6e 6f 77 20 6d 61 69 | input()| now mai|
|00004530| 6e 74 61 69 6e 73 20 79 | 79 6c 69 6e 65 6e 6f 2e |ntains y|ylineno.|
|00004540| 0a 0a 09 2d 20 69 6e 70 | 75 74 28 29 20 6e 6f 20 |...- inp|ut() no |
|00004550| 6c 6f 6e 67 65 72 20 74 | 72 61 73 68 65 73 20 79 |longer t|rashes y|
|00004560| 79 74 65 78 74 2e 0a 0a | 09 2d 20 69 6e 74 65 72 |ytext...|.- inter|
|00004570| 61 63 74 69 76 65 20 73 | 63 61 6e 6e 65 72 73 20 |active s|canners |
|00004580| 6e 6f 77 20 72 65 61 64 | 20 63 68 61 72 61 63 74 |now read| charact|
|00004590| 65 72 73 20 69 6e 20 59 | 59 5f 49 4e 50 55 54 20 |ers in Y|Y_INPUT |
|000045a0| 75 70 20 74 6f 20 61 0a | 09 20 20 6e 65 77 6c 69 |up to a.|. newli|
|000045b0| 6e 65 2c 20 61 20 6c 61 | 72 67 65 20 70 65 72 66 |ne, a la|rge perf|
|000045c0| 6f 72 6d 61 6e 63 65 20 | 67 61 69 6e 2e 0a 0a 09 |ormance |gain....|
|000045d0| 2d 20 43 2b 2b 20 73 63 | 61 6e 6e 65 72 20 6f 62 |- C++ sc|anner ob|
|000045e0| 6a 65 63 74 73 20 6e 6f | 77 20 77 6f 72 6b 20 77 |jects no|w work w|
|000045f0| 69 74 68 20 74 68 65 20 | 2d 50 20 6f 70 74 69 6f |ith the |-P optio|
|00004600| 6e 2e 20 20 59 6f 75 20 | 69 6e 63 6c 75 64 65 0a |n. You |include.|
|00004610| 09 20 20 3c 46 6c 65 78 | 4c 65 78 65 72 2e 68 3e |. <Flex|Lexer.h>|
|00004620| 20 6f 6e 63 65 20 70 65 | 72 20 73 63 61 6e 6e 65 | once pe|r scanne|
|00004630| 72 20 2d 20 73 65 65 20 | 63 6f 6d 6d 65 6e 74 73 |r - see |comments|
|00004640| 20 69 6e 20 3c 46 6c 65 | 78 4c 65 78 65 72 2e 68 | in <Fle|xLexer.h|
|00004650| 3e 0a 09 20 20 28 6f 72 | 20 66 6c 65 78 2e 31 29 |>.. (or| flex.1)|
|00004660| 20 66 6f 72 20 64 65 74 | 61 69 6c 73 2e 0a 0a 09 | for det|ails....|
|00004670| 2d 20 43 2b 2b 20 46 6c | 65 78 4c 65 78 65 72 20 |- C++ Fl|exLexer |
|00004680| 6f 62 6a 65 63 74 73 20 | 6e 6f 77 20 75 73 65 20 |objects |now use |
|00004690| 74 68 65 20 22 63 65 72 | 72 22 20 73 74 72 65 61 |the "cer|r" strea|
|000046a0| 6d 20 74 6f 20 72 65 70 | 6f 72 74 20 2d 64 20 6f |m to rep|ort -d o|
|000046b0| 75 74 70 75 74 0a 09 20 | 20 69 6e 73 74 65 61 64 |utput.. | instead|
|000046c0| 20 6f 66 20 73 74 64 69 | 6f 2e 0a 0a 09 2d 20 54 | of stdi|o....- T|
|000046d0| 68 65 20 2d 63 20 66 6c | 61 67 20 6e 6f 77 20 68 |he -c fl|ag now h|
|000046e0| 61 73 20 69 74 73 20 66 | 75 6c 6c 20 67 6c 6f 72 |as its f|ull glor|
|000046f0| 69 6f 75 73 20 50 4f 53 | 49 58 20 69 6e 74 65 72 |ious POS|IX inter|
|00004700| 70 72 65 74 61 74 69 6f | 6e 20 28 64 6f 0a 09 20 |pretatio|n (do.. |
|00004710| 20 6e 6f 74 68 69 6e 67 | 29 2c 20 72 61 74 68 65 | nothing|), rathe|
|00004720| 72 20 74 68 61 6e 20 62 | 65 69 6e 67 20 69 6e 74 |r than b|eing int|
|00004730| 65 72 70 72 65 74 65 64 | 20 61 73 20 61 6e 20 6f |erpreted| as an o|
|00004740| 6c 64 2d 73 74 79 6c 65 | 20 2d 43 20 66 6c 61 67 |ld-style| -C flag|
|00004750| 2e 0a 0a 09 2d 20 53 63 | 61 6e 6e 65 72 73 20 67 |....- Sc|anners g|
|00004760| 65 6e 65 72 61 74 65 64 | 20 62 79 20 66 6c 65 78 |enerated| by flex|
|00004770| 20 6e 6f 77 20 69 6e 63 | 6c 75 64 65 20 74 77 6f | now inc|lude two|
|00004780| 20 23 64 65 66 69 6e 65 | 27 73 20 67 69 76 69 6e | #define|'s givin|
|00004790| 67 0a 09 20 20 74 68 65 | 20 6d 61 6a 6f 72 20 61 |g.. the| major a|
|000047a0| 6e 64 20 6d 69 6e 6f 72 | 20 76 65 72 73 69 6f 6e |nd minor| version|
|000047b0| 20 6e 75 6d 62 65 72 73 | 20 28 59 59 5f 46 4c 45 | numbers| (YY_FLE|
|000047c0| 58 5f 4d 41 4a 4f 52 5f | 56 45 52 53 49 4f 4e 2c |X_MAJOR_|VERSION,|
|000047d0| 0a 09 20 20 59 59 5f 46 | 4c 45 58 5f 4d 49 4e 4f |.. YY_F|LEX_MINO|
|000047e0| 52 5f 56 45 52 53 49 4f | 4e 29 2e 20 20 54 68 65 |R_VERSIO|N). The|
|000047f0| 73 65 20 63 61 6e 20 74 | 68 65 6e 20 62 65 20 74 |se can t|hen be t|
|00004800| 65 73 74 65 64 20 74 6f | 20 73 65 65 0a 09 20 20 |ested to| see.. |
|00004810| 77 68 65 74 68 65 72 20 | 63 65 72 74 61 69 6e 20 |whether |certain |
|00004820| 66 6c 65 78 20 66 65 61 | 74 75 72 65 73 20 61 72 |flex fea|tures ar|
|00004830| 65 20 61 76 61 69 6c 61 | 62 6c 65 2e 0a 0a 09 2d |e availa|ble....-|
|00004840| 20 53 63 61 6e 6e 65 72 | 73 20 67 65 6e 65 72 61 | Scanner|s genera|
|00004850| 74 65 64 20 75 73 69 6e | 67 20 2d 6c 20 6c 65 78 |ted usin|g -l lex|
|00004860| 20 63 6f 6d 70 61 74 69 | 62 69 6c 69 74 79 20 6e | compati|bility n|
|00004870| 6f 77 20 68 61 76 65 20 | 74 68 65 20 73 79 6d 62 |ow have |the symb|
|00004880| 6f 6c 0a 09 20 20 59 59 | 5f 46 4c 45 58 5f 4c 45 |ol.. YY|_FLEX_LE|
|00004890| 58 5f 43 4f 4d 50 41 54 | 20 23 64 65 66 69 6e 65 |X_COMPAT| #define|
|000048a0| 27 64 2e 0a 0a 09 2d 20 | 57 68 65 6e 20 69 6e 69 |'d....- |When ini|
|000048b0| 74 69 61 6c 69 7a 69 6e | 67 20 28 69 2e 65 2e 2c |tializin|g (i.e.,|
|000048c0| 20 79 79 5f 69 6e 69 74 | 20 69 73 20 6e 6f 6e 2d | yy_init| is non-|
|000048d0| 7a 65 72 6f 20 6f 6e 20 | 65 6e 74 72 79 20 74 6f |zero on |entry to|
|000048e0| 20 79 79 6c 65 78 28 29 | 29 2c 0a 09 20 20 67 65 | yylex()|),.. ge|
|000048f0| 6e 65 72 61 74 65 64 20 | 73 63 61 6e 6e 65 72 73 |nerated |scanners|
|00004900| 20 6e 6f 77 20 73 65 74 | 20 79 79 5f 69 6e 69 74 | now set| yy_init|
|00004910| 20 74 6f 20 7a 65 72 6f | 20 62 65 66 6f 72 65 20 | to zero| before |
|00004920| 65 78 65 63 75 74 69 6e | 67 0a 09 20 20 59 59 5f |executin|g.. YY_|
|00004930| 55 53 45 52 5f 49 4e 49 | 54 2e 20 20 54 68 69 73 |USER_INI|T. This|
|00004940| 20 6d 65 61 6e 73 20 74 | 68 61 74 20 79 6f 75 20 | means t|hat you |
|00004950| 63 61 6e 20 73 65 74 20 | 79 79 5f 69 6e 69 74 20 |can set |yy_init |
|00004960| 62 61 63 6b 20 74 6f 20 | 61 0a 09 20 20 6e 6f 6e |back to |a.. non|
|00004970| 2d 7a 65 72 6f 20 76 61 | 6c 75 65 20 69 6e 20 59 |-zero va|lue in Y|
|00004980| 59 5f 55 53 45 52 5f 49 | 4e 49 54 20 69 66 20 79 |Y_USER_I|NIT if y|
|00004990| 6f 75 20 6e 65 65 64 20 | 74 68 65 20 73 63 61 6e |ou need |the scan|
|000049a0| 6e 65 72 20 74 6f 20 62 | 65 0a 09 20 20 72 65 69 |ner to b|e.. rei|
|000049b0| 6e 69 74 69 61 6c 69 7a | 65 64 20 6f 6e 20 74 68 |nitializ|ed on th|
|000049c0| 65 20 6e 65 78 74 20 63 | 61 6c 6c 2e 0a 0a 09 2d |e next c|all....-|
|000049d0| 20 59 6f 75 20 63 61 6e | 20 6e 6f 77 20 75 73 65 | You can| now use|
|000049e0| 20 22 23 6c 69 6e 65 22 | 20 64 69 72 65 63 74 69 | "#line"| directi|
|000049f0| 76 65 73 20 69 6e 20 74 | 68 65 20 66 69 72 73 74 |ves in t|he first|
|00004a00| 20 73 65 63 74 69 6f 6e | 20 6f 66 20 79 6f 75 72 | section| of your|
|00004a10| 0a 09 20 20 73 63 61 6e | 6e 65 72 20 73 70 65 63 |.. scan|ner spec|
|00004a20| 69 66 69 63 61 74 69 6f | 6e 2e 0a 0a 09 2d 20 57 |ificatio|n....- W|
|00004a30| 68 65 6e 20 67 65 6e 65 | 72 61 74 69 6e 67 20 66 |hen gene|rating f|
|00004a40| 75 6c 6c 2d 74 61 62 6c | 65 20 73 63 61 6e 6e 65 |ull-tabl|e scanne|
|00004a50| 72 73 20 28 2d 43 66 29 | 2c 20 66 6c 65 78 20 6e |rs (-Cf)|, flex n|
|00004a60| 6f 77 20 70 75 74 73 20 | 62 72 61 63 65 73 0a 09 |ow puts |braces..|
|00004a70| 20 20 61 72 6f 75 6e 64 | 20 65 61 63 68 20 72 6f | around| each ro|
|00004a80| 77 20 6f 66 20 74 68 65 | 20 32 2d 64 20 61 72 72 |w of the| 2-d arr|
|00004a90| 61 79 20 69 6e 69 74 69 | 61 6c 69 7a 61 74 69 6f |ay initi|alizatio|
|00004aa0| 6e 2c 20 74 6f 20 73 69 | 6c 65 6e 63 65 20 77 61 |n, to si|lence wa|
|00004ab0| 72 6e 69 6e 67 73 0a 09 | 20 20 6f 6e 20 6f 76 65 |rnings..| on ove|
|00004ac0| 72 2d 7a 65 61 6c 6f 75 | 73 20 63 6f 6d 70 69 6c |r-zealou|s compil|
|00004ad0| 65 72 73 2e 0a 0a 09 2d | 20 49 6d 70 72 6f 76 65 |ers....-| Improve|
|00004ae0| 64 20 73 75 70 70 6f 72 | 74 20 66 6f 72 20 4d 53 |d suppor|t for MS|
|00004af0| 2d 44 4f 53 2e 20 20 54 | 68 65 20 66 6c 65 78 20 |-DOS. T|he flex |
|00004b00| 73 6f 75 72 63 65 73 20 | 68 61 76 65 20 62 65 65 |sources |have bee|
|00004b10| 6e 20 73 75 63 63 65 73 | 73 66 75 6c 6c 79 0a 09 |n succes|sfully..|
|00004b20| 20 20 62 75 69 6c 74 2c | 20 75 6e 6d 6f 64 69 66 | built,| unmodif|
|00004b30| 69 65 64 2c 20 66 6f 72 | 20 42 6f 72 6c 61 6e 64 |ied, for| Borland|
|00004b40| 20 34 2e 30 32 20 28 61 | 6c 6c 20 74 68 61 74 27 | 4.02 (a|ll that'|
|00004b50| 73 20 72 65 71 75 69 72 | 65 64 20 69 73 20 61 0a |s requir|ed is a.|
|00004b60| 09 20 20 42 6f 72 6c 61 | 6e 64 20 4d 61 6b 65 66 |. Borla|nd Makef|
|00004b70| 69 6c 65 20 61 6e 64 20 | 63 6f 6e 66 69 67 2e 68 |ile and |config.h|
|00004b80| 20 66 69 6c 65 2c 20 77 | 68 69 63 68 20 61 72 65 | file, w|hich are|
|00004b90| 20 73 75 70 70 6c 69 65 | 64 20 69 6e 0a 09 20 20 | supplie|d in.. |
|00004ba0| 4d 49 53 43 2f 42 6f 72 | 6c 61 6e 64 20 2d 20 63 |MISC/Bor|land - c|
|00004bb0| 6f 6e 74 72 69 62 75 74 | 65 64 20 62 79 20 54 65 |ontribut|ed by Te|
|00004bc0| 72 72 65 6e 63 65 20 4f | 20 4b 61 6e 65 29 2e 0a |rrence O| Kane)..|
|00004bd0| 0a 09 2d 20 49 6d 70 72 | 6f 76 65 64 20 73 75 70 |..- Impr|oved sup|
|00004be0| 70 6f 72 74 20 66 6f 72 | 20 4d 61 63 69 6e 74 6f |port for| Macinto|
|00004bf0| 73 68 20 75 73 69 6e 67 | 20 54 68 69 6e 6b 20 43 |sh using| Think C|
|00004c00| 20 2d 20 74 68 65 20 73 | 6f 75 72 63 65 73 20 73 | - the s|ources s|
|00004c10| 68 6f 75 6c 64 0a 09 20 | 20 62 75 69 6c 64 20 66 |hould.. | build f|
|00004c20| 6f 72 20 74 68 69 73 20 | 70 6c 61 74 66 6f 72 6d |or this |platform|
|00004c30| 20 22 6f 75 74 20 6f 66 | 20 74 68 65 20 62 6f 78 | "out of| the box|
|00004c40| 22 2e 20 20 43 6f 6e 74 | 72 69 62 75 74 65 64 20 |". Cont|ributed |
|00004c50| 62 79 20 53 63 6f 74 74 | 0a 09 20 20 48 6f 66 6d |by Scott|.. Hofm|
|00004c60| 61 6e 6e 2e 0a 0a 09 2d | 20 49 6d 70 72 6f 76 65 |ann....-| Improve|
|00004c70| 64 20 73 75 70 70 6f 72 | 74 20 66 6f 72 20 56 4d |d suppor|t for VM|
|00004c80| 53 2c 20 69 6e 20 4d 49 | 53 43 2f 56 4d 53 2f 2c |S, in MI|SC/VMS/,|
|00004c90| 20 63 6f 6e 74 72 69 62 | 75 74 65 64 20 62 79 20 | contrib|uted by |
|00004ca0| 50 61 74 20 52 61 6e 6b | 69 6e 2e 0a 0a 09 2d 20 |Pat Rank|in....- |
|00004cb0| 53 75 70 70 6f 72 74 20 | 66 6f 72 20 74 68 65 20 |Support |for the |
|00004cc0| 41 6d 69 67 61 2c 20 69 | 6e 20 4d 49 53 43 2f 41 |Amiga, i|n MISC/A|
|00004cd0| 6d 69 67 61 2f 2c 20 63 | 6f 6e 74 72 69 62 75 74 |miga/, c|ontribut|
|00004ce0| 65 64 20 62 79 20 41 6e | 64 72 65 61 73 0a 09 20 |ed by An|dreas.. |
|00004cf0| 20 53 63 68 65 72 65 72 | 2e 20 20 4e 6f 74 65 20 | Scherer|. Note |
|00004d00| 74 68 61 74 20 74 68 65 | 20 63 6f 6e 74 72 69 62 |that the| contrib|
|00004d10| 75 74 65 64 20 66 69 6c | 65 73 20 77 65 72 65 20 |uted fil|es were |
|00004d20| 64 65 76 65 6c 6f 70 65 | 64 20 66 6f 72 0a 09 20 |develope|d for.. |
|00004d30| 20 66 6c 65 78 20 32 2e | 34 20 61 6e 64 20 68 61 | flex 2.|4 and ha|
|00004d40| 76 65 20 6e 6f 74 20 62 | 65 65 6e 20 74 65 73 74 |ve not b|een test|
|00004d50| 65 64 20 77 69 74 68 20 | 66 6c 65 78 20 32 2e 35 |ed with |flex 2.5|
|00004d60| 2e 0a 0a 09 2d 20 53 6f | 6d 65 20 6e 6f 74 65 73 |....- So|me notes|
|00004d70| 20 6f 6e 20 73 75 70 70 | 6f 72 74 20 66 6f 72 20 | on supp|ort for |
|00004d80| 74 68 65 20 4e 65 58 54 | 2c 20 69 6e 20 4d 49 53 |the NeXT|, in MIS|
|00004d90| 43 2f 4e 65 58 54 2c 20 | 63 6f 6e 74 72 69 62 75 |C/NeXT, |contribu|
|00004da0| 74 65 64 0a 09 20 20 62 | 79 20 52 61 66 20 53 63 |ted.. b|y Raf Sc|
|00004db0| 68 69 65 74 65 6b 61 74 | 2e 0a 0a 09 2d 20 54 68 |hietekat|....- Th|
|00004dc0| 65 20 4d 49 53 43 2f 20 | 64 69 72 65 63 74 6f 72 |e MISC/ |director|
|00004dd0| 79 20 6e 6f 77 20 69 6e | 63 6c 75 64 65 73 20 61 |y now in|cludes a|
|00004de0| 20 70 72 65 66 6f 72 6d | 61 74 74 65 64 20 76 65 | preform|atted ve|
|00004df0| 72 73 69 6f 6e 20 6f 66 | 20 66 6c 65 78 2e 31 0a |rsion of| flex.1.|
|00004e00| 09 20 20 69 6e 20 66 6c | 65 78 2e 6d 61 6e 2c 20 |. in fl|ex.man, |
|00004e10| 61 6e 64 20 70 72 65 2d | 79 61 63 63 27 64 20 76 |and pre-|yacc'd v|
|00004e20| 65 72 73 69 6f 6e 73 20 | 6f 66 20 70 61 72 73 65 |ersions |of parse|
|00004e30| 2e 79 20 69 6e 20 70 61 | 72 73 65 2e 7b 63 2c 68 |.y in pa|rse.{c,h|
|00004e40| 7d 2e 0a 0a 09 2d 20 54 | 68 65 20 66 6c 65 78 2e |}....- T|he flex.|
|00004e50| 31 20 61 6e 64 20 66 6c | 65 78 64 6f 63 2e 31 20 |1 and fl|exdoc.1 |
|00004e60| 6d 61 6e 75 61 6c 20 70 | 61 67 65 73 20 68 61 76 |manual p|ages hav|
|00004e70| 65 20 62 65 65 6e 20 6d | 65 72 67 65 64 2e 20 20 |e been m|erged. |
|00004e80| 54 68 65 72 65 0a 09 20 | 20 69 73 20 6e 6f 77 20 |There.. | is now |
|00004e90| 6a 75 73 74 20 6f 6e 65 | 20 64 6f 63 75 6d 65 6e |just one| documen|
|00004ea0| 74 2c 20 66 6c 65 78 2e | 31 2c 20 77 68 69 63 68 |t, flex.|1, which|
|00004eb0| 20 69 6e 63 6c 75 64 65 | 73 20 61 6e 20 6f 76 65 | include|s an ove|
|00004ec0| 72 76 69 65 77 0a 09 20 | 20 61 74 20 74 68 65 20 |rview.. | at the |
|00004ed0| 62 65 67 69 6e 6e 69 6e | 67 20 74 6f 20 68 65 6c |beginnin|g to hel|
|00004ee0| 70 20 79 6f 75 20 66 69 | 6e 64 20 74 68 65 20 73 |p you fi|nd the s|
|00004ef0| 65 63 74 69 6f 6e 20 79 | 6f 75 20 6e 65 65 64 2e |ection y|ou need.|
|00004f00| 0a 0a 09 2d 20 44 6f 63 | 75 6d 65 6e 74 61 74 69 |...- Doc|umentati|
|00004f10| 6f 6e 20 6e 6f 77 20 63 | 6c 61 72 69 66 69 65 73 |on now c|larifies|
|00004f20| 20 74 68 61 74 20 73 74 | 61 72 74 20 63 6f 6e 64 | that st|art cond|
|00004f30| 69 74 69 6f 6e 73 20 70 | 65 72 73 69 73 74 20 61 |itions p|ersist a|
|00004f40| 63 72 6f 73 73 0a 09 20 | 20 73 77 69 74 63 68 65 |cross.. | switche|
|00004f50| 73 20 74 6f 20 6e 65 77 | 20 69 6e 70 75 74 20 66 |s to new| input f|
|00004f60| 69 6c 65 73 20 6f 72 20 | 64 69 66 66 65 72 65 6e |iles or |differen|
|00004f70| 74 20 69 6e 70 75 74 20 | 62 75 66 66 65 72 73 2e |t input |buffers.|
|00004f80| 20 20 49 66 20 79 6f 75 | 0a 09 20 20 77 61 6e 74 | If you|.. want|
|00004f90| 20 74 6f 20 65 2e 67 2e | 2c 20 72 65 74 75 72 6e | to e.g.|, return|
|00004fa0| 20 74 6f 20 49 4e 49 54 | 49 41 4c 2c 20 79 6f 75 | to INIT|IAL, you|
|00004fb0| 20 6d 75 73 74 20 65 78 | 70 6c 69 63 69 74 6c 79 | must ex|plicitly|
|00004fc0| 20 64 6f 20 73 6f 2e 0a | 0a 09 2d 20 54 68 65 20 | do so..|..- The |
|00004fd0| 22 50 65 72 66 6f 72 6d | 61 6e 63 65 20 43 6f 6e |"Perform|ance Con|
|00004fe0| 73 69 64 65 72 61 74 69 | 6f 6e 73 22 20 73 65 63 |siderati|ons" sec|
|00004ff0| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 6d 61 6e 75 |tion of |the manu|
|00005000| 61 6c 20 68 61 73 20 62 | 65 65 6e 0a 09 20 20 75 |al has b|een.. u|
|00005010| 70 64 61 74 65 64 2e 0a | 0a 09 2d 20 44 6f 63 75 |pdated..|..- Docu|
|00005020| 6d 65 6e 74 65 64 20 74 | 68 65 20 22 79 79 5f 61 |mented t|he "yy_a|
|00005030| 63 74 22 20 76 61 72 69 | 61 62 6c 65 2c 20 77 68 |ct" vari|able, wh|
|00005040| 69 63 68 20 77 68 65 6e | 20 59 59 5f 55 53 45 52 |ich when| YY_USER|
|00005050| 5f 41 43 54 49 4f 4e 20 | 69 73 0a 09 20 20 69 6e |_ACTION |is.. in|
|00005060| 76 6f 6b 65 64 20 68 6f | 6c 64 73 20 74 68 65 20 |voked ho|lds the |
|00005070| 6e 75 6d 62 65 72 20 6f | 66 20 74 68 65 20 6d 61 |number o|f the ma|
|00005080| 74 63 68 65 64 20 72 75 | 6c 65 2c 20 61 6e 64 20 |tched ru|le, and |
|00005090| 61 64 64 65 64 20 61 6e | 0a 09 20 20 65 78 61 6d |added an|.. exam|
|000050a0| 70 6c 65 20 6f 66 20 75 | 73 69 6e 67 20 79 79 5f |ple of u|sing yy_|
|000050b0| 61 63 74 20 74 6f 20 70 | 72 6f 66 69 6c 65 20 68 |act to p|rofile h|
|000050c0| 6f 77 20 6f 66 74 65 6e | 20 65 61 63 68 20 72 75 |ow often| each ru|
|000050d0| 6c 65 20 69 73 20 6d 61 | 74 63 68 65 64 2e 0a 0a |le is ma|tched...|
|000050e0| 09 2d 20 41 64 64 65 64 | 20 59 59 5f 4e 55 4d 5f |.- Added| YY_NUM_|
|000050f0| 52 55 4c 45 53 2c 20 61 | 20 64 65 66 69 6e 69 74 |RULES, a| definit|
|00005100| 69 6f 6e 20 74 68 61 74 | 20 67 69 76 65 73 20 74 |ion that| gives t|
|00005110| 68 65 20 74 6f 74 61 6c | 20 6e 75 6d 62 65 72 0a |he total| number.|
|00005120| 09 20 20 6f 66 20 72 75 | 6c 65 73 20 69 6e 20 74 |. of ru|les in t|
|00005130| 68 65 20 66 69 6c 65 2c | 20 69 6e 63 6c 75 64 69 |he file,| includi|
|00005140| 6e 67 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 72 |ng the d|efault r|
|00005150| 75 6c 65 20 28 65 76 65 | 6e 20 69 66 20 79 6f 75 |ule (eve|n if you|
|00005160| 0a 09 20 20 75 73 65 20 | 2d 73 29 2e 0a 0a 09 2d |.. use |-s)....-|
|00005170| 20 44 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 6e | Documen|tation n|
|00005180| 6f 77 20 63 6c 61 72 69 | 66 69 65 73 20 74 68 61 |ow clari|fies tha|
|00005190| 74 20 79 6f 75 20 63 61 | 6e 20 70 61 73 73 20 61 |t you ca|n pass a|
|000051a0| 20 6e 69 6c 20 46 49 4c | 45 2a 20 70 6f 69 6e 74 | nil FIL|E* point|
|000051b0| 65 72 0a 09 20 20 74 6f | 20 79 79 5f 63 72 65 61 |er.. to| yy_crea|
|000051c0| 74 65 5f 62 75 66 66 65 | 72 28 29 20 6f 72 20 79 |te_buffe|r() or y|
|000051d0| 79 72 65 73 74 61 72 74 | 28 29 20 69 66 20 79 6f |yrestart|() if yo|
|000051e0| 75 27 76 65 20 61 72 72 | 61 6e 67 65 20 59 59 5f |u've arr|ange YY_|
|000051f0| 49 4e 50 55 54 0a 09 20 | 20 74 6f 20 6e 6f 74 20 |INPUT.. | to not |
|00005200| 6e 65 65 64 20 79 79 69 | 6e 2e 0a 0a 09 2d 20 44 |need yyi|n....- D|
|00005210| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 6e 6f 77 |ocumenta|tion now|
|00005220| 20 63 6c 61 72 69 66 69 | 65 73 20 74 68 61 74 20 | clarifi|es that |
|00005230| 59 59 5f 42 55 46 46 45 | 52 5f 53 54 41 54 45 20 |YY_BUFFE|R_STATE |
|00005240| 69 73 20 61 20 70 6f 69 | 6e 74 65 72 20 74 6f 0a |is a poi|nter to.|
|00005250| 09 20 20 61 6e 20 6f 70 | 61 71 75 65 20 22 73 74 |. an op|aque "st|
|00005260| 72 75 63 74 20 79 79 5f | 62 75 66 66 65 72 5f 73 |ruct yy_|buffer_s|
|00005270| 74 61 74 65 22 2e 0a 0a | 09 2d 20 44 6f 63 75 6d |tate"...|.- Docum|
|00005280| 65 6e 74 61 74 69 6f 6e | 20 6e 6f 77 20 73 74 72 |entation| now str|
|00005290| 65 73 73 65 73 20 74 68 | 61 74 20 79 6f 75 20 67 |esses th|at you g|
|000052a0| 61 69 6e 20 74 68 65 20 | 62 65 6e 65 66 69 74 73 |ain the |benefits|
|000052b0| 20 6f 66 20 72 65 6d 6f | 76 69 6e 67 0a 09 20 20 | of remo|ving.. |
|000052c0| 62 61 63 6b 69 6e 67 2d | 75 70 20 73 74 61 74 65 |backing-|up state|
|000052d0| 73 20 6f 6e 6c 79 20 69 | 66 20 79 6f 75 20 72 65 |s only i|f you re|
|000052e0| 6d 6f 76 65 20 2a 61 6c | 6c 2a 20 6f 66 20 74 68 |move *al|l* of th|
|000052f0| 65 6d 2e 0a 0a 09 2d 20 | 44 6f 63 75 6d 65 6e 74 |em....- |Document|
|00005300| 61 74 69 6f 6e 20 6e 6f | 77 20 70 6f 69 6e 74 73 |ation no|w points|
|00005310| 20 6f 75 74 20 74 68 61 | 74 20 74 72 61 64 69 74 | out tha|t tradit|
|00005320| 69 6f 6e 61 6c 20 6c 65 | 78 20 61 6c 6c 6f 77 73 |ional le|x allows|
|00005330| 20 79 6f 75 0a 09 20 20 | 74 6f 20 70 75 74 20 74 | you.. |to put t|
|00005340| 68 65 20 61 63 74 69 6f | 6e 20 6f 6e 20 61 20 73 |he actio|n on a s|
|00005350| 65 70 61 72 61 74 65 20 | 6c 69 6e 65 20 66 72 6f |eparate |line fro|
|00005360| 6d 20 74 68 65 20 72 75 | 6c 65 20 70 61 74 74 65 |m the ru|le patte|
|00005370| 72 6e 20 69 66 0a 09 20 | 20 74 68 65 20 70 61 74 |rn if.. | the pat|
|00005380| 74 65 72 6e 20 68 61 73 | 20 74 72 61 69 6c 69 6e |tern has| trailin|
|00005390| 67 20 77 68 69 74 65 73 | 70 61 63 65 20 28 75 67 |g whites|pace (ug|
|000053a0| 68 21 29 2c 20 62 75 74 | 20 66 6c 65 78 20 64 6f |h!), but| flex do|
|000053b0| 65 73 6e 27 74 0a 09 20 | 20 73 75 70 70 6f 72 74 |esn't.. | support|
|000053c0| 20 74 68 69 73 2e 0a 0a | 09 2d 20 41 20 62 72 6f | this...|.- A bro|
|000053d0| 6b 65 6e 20 65 78 61 6d | 70 6c 65 20 69 6e 20 64 |ken exam|ple in d|
|000053e0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 6f 66 20 |ocumenta|tion of |
|000053f0| 74 68 65 20 64 69 66 66 | 65 72 65 6e 63 65 20 62 |the diff|erence b|
|00005400| 65 74 77 65 65 6e 0a 09 | 20 20 69 6e 63 6c 75 73 |etween..| inclus|
|00005410| 69 76 65 20 61 6e 64 20 | 65 78 63 6c 75 73 69 76 |ive and |exclusiv|
|00005420| 65 20 73 74 61 72 74 20 | 63 6f 6e 64 69 74 69 6f |e start |conditio|
|00005430| 6e 73 20 69 73 20 6e 6f | 77 20 66 69 78 65 64 2e |ns is no|w fixed.|
|00005440| 0a 0a 09 2d 20 55 73 61 | 67 65 20 28 2d 68 29 20 |...- Usa|ge (-h) |
|00005450| 72 65 70 6f 72 74 20 6e | 6f 77 20 67 6f 65 73 20 |report n|ow goes |
|00005460| 74 6f 20 73 74 64 6f 75 | 74 2e 0a 0a 09 2d 20 56 |to stdou|t....- V|
|00005470| 65 72 73 69 6f 6e 20 28 | 2d 56 29 20 69 6e 66 6f |ersion (|-V) info|
|00005480| 20 6e 6f 77 20 67 6f 65 | 73 20 74 6f 20 73 74 64 | now goe|s to std|
|00005490| 6f 75 74 2e 0a 0a 09 2d | 20 4d 6f 72 65 20 23 69 |out....-| More #i|
|000054a0| 66 64 65 66 20 63 68 75 | 64 20 68 61 73 20 62 65 |fdef chu|d has be|
|000054b0| 65 6e 20 61 64 64 65 64 | 20 74 6f 20 74 68 65 20 |en added| to the |
|000054c0| 70 61 72 73 65 72 20 69 | 6e 20 61 74 74 65 6d 70 |parser i|n attemp|
|000054d0| 74 20 74 6f 0a 09 20 20 | 64 65 61 6c 20 77 69 74 |t to.. |deal wit|
|000054e0| 68 20 62 69 73 6f 6e 27 | 73 20 75 73 65 20 6f 66 |h bison'|s use of|
|000054f0| 20 61 6c 6c 6f 63 61 28 | 29 2e 0a 0a 09 2d 20 22 | alloca(|)....- "|
|00005500| 6d 61 6b 65 20 63 6c 65 | 61 6e 22 20 6e 6f 20 6c |make cle|an" no l|
|00005510| 6f 6e 67 65 72 20 64 65 | 6c 65 74 65 73 20 65 6d |onger de|letes em|
|00005520| 61 63 73 20 62 61 63 6b | 75 70 20 66 69 6c 65 73 |acs back|up files|
|00005530| 20 28 2a 7e 29 2e 0a 0a | 09 2d 20 53 6f 6d 65 20 | (*~)...|.- Some |
|00005540| 6d 65 6d 6f 72 79 20 6c | 65 61 6b 73 20 68 61 76 |memory l|eaks hav|
|00005550| 65 20 62 65 65 6e 20 66 | 69 78 65 64 2e 0a 0a 09 |e been f|ixed....|
|00005560| 2d 20 41 20 62 75 67 20 | 77 61 73 20 66 69 78 65 |- A bug |was fixe|
|00005570| 64 20 69 6e 20 77 68 69 | 63 68 20 64 79 6e 61 6d |d in whi|ch dynam|
|00005580| 69 63 61 6c 6c 79 2d 65 | 78 70 61 6e 64 65 64 20 |ically-e|xpanded |
|00005590| 62 75 66 66 65 72 73 20 | 77 65 72 65 0a 09 20 20 |buffers |were.. |
|000055a0| 72 65 61 6c 6c 6f 63 61 | 74 65 64 20 61 20 63 6f |realloca|ted a co|
|000055b0| 75 70 6c 65 20 6f 66 20 | 62 79 74 65 73 20 74 6f |uple of |bytes to|
|000055c0| 6f 20 73 6d 61 6c 6c 2e | 0a 0a 09 2d 20 41 20 62 |o small.|...- A b|
|000055d0| 75 67 20 77 61 73 20 66 | 69 78 65 64 20 77 68 69 |ug was f|ixed whi|
|000055e0| 63 68 20 63 6f 75 6c 64 | 20 63 61 75 73 65 20 66 |ch could| cause f|
|000055f0| 6c 65 78 20 74 6f 20 72 | 65 61 64 20 61 6e 64 20 |lex to r|ead and |
|00005600| 77 72 69 74 65 20 62 65 | 79 6f 6e 64 0a 09 20 20 |write be|yond.. |
|00005610| 74 68 65 20 65 6e 64 20 | 6f 66 20 74 68 65 20 69 |the end |of the i|
|00005620| 6e 70 75 74 20 62 75 66 | 66 65 72 2e 0a 0a 09 2d |nput buf|fer....-|
|00005630| 20 2d 53 20 77 69 6c 6c | 20 6e 6f 74 20 62 65 20 | -S will| not be |
|00005640| 67 6f 69 6e 67 20 61 77 | 61 79 2e 0a 0a 0a 43 68 |going aw|ay....Ch|
|00005650| 61 6e 67 65 73 20 62 65 | 74 77 65 65 6e 20 72 65 |anges be|tween re|
|00005660| 6c 65 61 73 65 20 32 2e | 34 2e 37 20 28 30 33 41 |lease 2.|4.7 (03A|
|00005670| 75 67 39 34 29 20 61 6e | 64 20 72 65 6c 65 61 73 |ug94) an|d releas|
|00005680| 65 20 32 2e 34 2e 36 3a | 0a 0a 09 2d 20 46 69 78 |e 2.4.6:|...- Fix|
|00005690| 65 64 20 73 65 72 69 6f | 75 73 20 62 75 67 20 69 |ed serio|us bug i|
|000056a0| 6e 20 72 65 61 64 69 6e | 67 20 6d 75 6c 74 69 70 |n readin|g multip|
|000056b0| 6c 65 20 66 69 6c 65 73 | 2e 0a 0a 09 2d 20 46 69 |le files|....- Fi|
|000056c0| 78 65 64 20 62 75 67 20 | 69 6e 20 73 63 61 6e 6e |xed bug |in scann|
|000056d0| 69 6e 67 20 4e 55 4c 27 | 73 2e 0a 0a 09 2d 20 46 |ing NUL'|s....- F|
|000056e0| 69 78 65 64 20 62 75 67 | 20 69 6e 20 69 6e 70 75 |ixed bug| in inpu|
|000056f0| 74 28 29 20 72 65 74 75 | 72 6e 69 6e 67 20 38 2d |t() retu|rning 8-|
|00005700| 62 69 74 20 63 68 61 72 | 61 63 74 65 72 73 2e 0a |bit char|acters..|
|00005710| 0a 09 2d 20 46 69 78 65 | 64 20 62 75 67 20 69 6e |..- Fixe|d bug in|
|00005720| 20 6d 61 74 63 68 69 6e | 67 20 74 65 78 74 20 77 | matchin|g text w|
|00005730| 69 74 68 20 65 6d 62 65 | 64 64 65 64 20 4e 55 4c |ith embe|dded NUL|
|00005740| 27 73 20 77 68 65 6e 0a | 09 20 20 75 73 69 6e 67 |'s when.|. using|
|00005750| 20 25 61 72 72 61 79 20 | 6f 72 20 6c 65 78 20 63 | %array |or lex c|
|00005760| 6f 6d 70 61 74 69 62 69 | 6c 69 74 79 2e 0a 0a 09 |ompatibi|lity....|
|00005770| 2d 20 46 69 78 65 64 20 | 6d 75 6c 74 69 70 6c 65 |- Fixed |multiple|
|00005780| 20 69 6e 76 6f 63 61 74 | 69 6f 6e 73 20 6f 66 20 | invocat|ions of |
|00005790| 59 59 5f 55 53 45 52 5f | 41 43 54 49 4f 4e 20 77 |YY_USER_|ACTION w|
|000057a0| 68 65 6e 20 75 73 69 6e | 67 20 27 7c 27 0a 09 20 |hen usin|g '|'.. |
|000057b0| 20 63 6f 6e 74 69 6e 75 | 61 74 69 6f 6e 20 61 63 | continu|ation ac|
|000057c0| 74 69 6f 6e 2e 0a 0a 09 | 2d 20 4d 69 6e 6f 72 20 |tion....|- Minor |
|000057d0| 70 72 6f 74 6f 74 79 70 | 69 6e 67 20 66 69 78 65 |prototyp|ing fixe|
|000057e0| 73 2e 0a 0a 43 68 61 6e | 67 65 73 20 62 65 74 77 |s...Chan|ges betw|
|000057f0| 65 65 6e 20 72 65 6c 65 | 61 73 65 20 32 2e 34 2e |een rele|ase 2.4.|
|00005800| 36 20 28 30 34 4a 61 6e | 39 34 29 20 61 6e 64 20 |6 (04Jan|94) and |
|00005810| 72 65 6c 65 61 73 65 20 | 32 2e 34 2e 35 3a 0a 0a |release |2.4.5:..|
|00005820| 09 2d 20 4c 69 6e 6b 69 | 6e 67 20 77 69 74 68 20 |.- Linki|ng with |
|00005830| 2d 6c 66 6c 20 6e 6f 20 | 6c 6f 6e 67 65 72 20 72 |-lfl no |longer r|
|00005840| 65 71 75 69 72 65 64 20 | 69 66 20 79 6f 75 72 20 |equired |if your |
|00005850| 70 72 6f 67 72 61 6d 20 | 69 6e 63 6c 75 64 65 73 |program |includes|
|00005860| 0a 09 20 20 69 74 73 20 | 6f 77 6e 20 79 79 77 72 |.. its |own yywr|
|00005870| 61 70 28 29 20 61 6e 64 | 20 6d 61 69 6e 28 29 20 |ap() and| main() |
|00005880| 66 75 6e 63 74 69 6f 6e | 73 2e 20 20 28 54 68 69 |function|s. (Thi|
|00005890| 73 20 63 68 61 6e 67 65 | 20 77 69 6c 6c 20 63 61 |s change| will ca|
|000058a0| 75 73 65 0a 09 20 20 70 | 72 6f 62 6c 65 6d 73 20 |use.. p|roblems |
|000058b0| 69 66 20 79 6f 75 20 68 | 61 76 65 20 61 20 6e 6f |if you h|ave a no|
|000058c0| 6e 2d 41 4e 53 49 20 63 | 6f 6d 70 69 6c 65 72 20 |n-ANSI c|ompiler |
|000058d0| 6f 6e 20 61 20 73 79 73 | 74 65 6d 20 66 6f 72 20 |on a sys|tem for |
|000058e0| 77 68 69 63 68 0a 09 20 | 20 73 69 7a 65 6f 66 28 |which.. | sizeof(|
|000058f0| 69 6e 74 29 20 21 3d 20 | 73 69 7a 65 6f 66 28 76 |int) != |sizeof(v|
|00005900| 6f 69 64 2a 29 20 6f 72 | 20 73 69 7a 65 6f 66 28 |oid*) or| sizeof(|
|00005910| 69 6e 74 29 20 21 3d 20 | 73 69 7a 65 6f 66 28 73 |int) != |sizeof(s|
|00005920| 69 7a 65 5f 74 29 2e 29 | 0a 0a 09 2d 20 54 68 65 |ize_t).)|...- The|
|00005930| 20 75 73 65 20 6f 66 20 | 27 65 78 74 65 72 6e 20 | use of |'extern |
|00005940| 22 43 2b 2b 22 27 20 69 | 6e 20 46 6c 65 78 4c 65 |"C++"' i|n FlexLe|
|00005950| 78 65 72 2e 68 20 68 61 | 73 20 62 65 65 6e 20 6d |xer.h ha|s been m|
|00005960| 6f 64 69 66 69 65 64 20 | 74 6f 0a 09 20 20 67 65 |odified |to.. ge|
|00005970| 74 20 61 72 6f 75 6e 64 | 20 61 6e 20 69 6e 63 6f |t around| an inco|
|00005980| 6d 70 61 74 69 62 69 6c | 69 74 79 20 77 69 74 68 |mpatibil|ity with|
|00005990| 20 67 2b 2b 27 73 20 68 | 65 61 64 65 72 20 66 69 | g++'s h|eader fi|
|000059a0| 6c 65 73 2e 0a 0a 43 68 | 61 6e 67 65 73 20 62 65 |les...Ch|anges be|
|000059b0| 74 77 65 65 6e 20 72 65 | 6c 65 61 73 65 20 32 2e |tween re|lease 2.|
|000059c0| 34 2e 35 20 28 31 31 44 | 65 63 39 33 29 20 61 6e |4.5 (11D|ec93) an|
|000059d0| 64 20 72 65 6c 65 61 73 | 65 20 32 2e 34 2e 34 3a |d releas|e 2.4.4:|
|000059e0| 0a 0a 09 2d 20 46 69 78 | 65 64 20 62 75 67 20 62 |...- Fix|ed bug b|
|000059f0| 72 65 61 6b 69 6e 67 20 | 43 2b 2b 20 73 63 61 6e |reaking |C++ scan|
|00005a00| 6e 65 72 73 20 74 68 61 | 74 20 75 73 65 20 52 45 |ners tha|t use RE|
|00005a10| 4a 45 43 54 20 6f 72 20 | 76 61 72 69 61 62 6c 65 |JECT or |variable|
|00005a20| 0a 09 20 20 74 72 61 69 | 6c 69 6e 67 20 63 6f 6e |.. trai|ling con|
|00005a30| 74 65 78 74 2e 0a 0a 09 | 2d 20 46 69 78 65 64 20 |text....|- Fixed |
|00005a40| 73 65 72 69 6f 75 73 20 | 69 6e 70 75 74 20 70 72 |serious |input pr|
|00005a50| 6f 62 6c 65 6d 20 66 6f | 72 20 69 6e 74 65 72 61 |oblem fo|r intera|
|00005a60| 63 74 69 76 65 20 73 63 | 61 6e 6e 65 72 73 20 6f |ctive sc|anners o|
|00005a70| 6e 0a 09 20 20 73 79 73 | 74 65 6d 73 20 66 6f 72 |n.. sys|tems for|
|00005a80| 20 77 68 69 63 68 20 63 | 68 61 72 20 69 73 20 75 | which c|har is u|
|00005a90| 6e 73 69 67 6e 65 64 2e | 0a 0a 09 2d 20 46 69 78 |nsigned.|...- Fix|
|00005aa0| 65 64 20 62 75 67 20 69 | 6e 20 69 6e 63 6f 72 72 |ed bug i|n incorr|
|00005ab0| 65 63 74 6c 79 20 74 72 | 65 61 74 69 6e 67 20 27 |ectly tr|eating '|
|00005ac0| 24 27 20 6f 70 65 72 61 | 74 6f 72 20 61 73 20 76 |$' opera|tor as v|
|00005ad0| 61 72 69 61 62 6c 65 0a | 09 20 20 74 72 61 69 6c |ariable.|. trail|
|00005ae0| 69 6e 67 20 63 6f 6e 74 | 65 78 74 2e 0a 0a 09 2d |ing cont|ext....-|
|00005af0| 20 46 69 78 65 64 20 62 | 75 67 20 69 6e 20 2d 43 | Fixed b|ug in -C|
|00005b00| 46 20 74 61 62 6c 65 20 | 72 65 70 72 65 73 65 6e |F table |represen|
|00005b10| 74 61 74 69 6f 6e 20 74 | 68 61 74 20 63 6f 75 6c |tation t|hat coul|
|00005b20| 64 20 6c 65 61 64 20 74 | 6f 0a 09 20 20 63 6f 72 |d lead t|o.. cor|
|00005b30| 72 75 70 74 20 74 61 62 | 6c 65 73 2e 0a 0a 09 2d |rupt tab|les....-|
|00005b40| 20 46 69 78 65 64 20 66 | 61 69 72 6c 79 20 62 65 | Fixed f|airly be|
|00005b50| 6e 69 67 6e 20 6d 65 6d | 6f 72 79 20 6c 65 61 6b |nign mem|ory leak|
|00005b60| 2e 0a 0a 09 2d 20 41 64 | 64 65 64 20 60 65 78 74 |....- Ad|ded `ext|
|00005b70| 65 72 6e 20 22 43 2b 2b | 22 27 20 77 72 61 70 70 |ern "C++|"' wrapp|
|00005b80| 65 72 20 74 6f 20 46 6c | 65 78 4c 65 78 65 72 2e |er to Fl|exLexer.|
|00005b90| 68 20 68 65 61 64 65 72 | 2e 20 20 54 68 69 73 0a |h header|. This.|
|00005ba0| 09 20 20 73 68 6f 75 6c | 64 20 6f 76 65 72 63 6f |. shoul|d overco|
|00005bb0| 6d 65 20 74 68 65 20 67 | 2b 2b 20 32 2e 35 2e 58 |me the g|++ 2.5.X|
|00005bc0| 20 70 72 6f 62 6c 65 6d | 73 20 6d 65 6e 74 69 6f | problem|s mentio|
|00005bd0| 6e 65 64 20 69 6e 20 74 | 68 65 0a 09 20 20 4e 45 |ned in t|he.. NE|
|00005be0| 57 53 20 66 6f 72 20 72 | 65 6c 65 61 73 65 20 32 |WS for r|elease 2|
|00005bf0| 2e 34 2e 33 2e 0a 0a 09 | 2d 20 43 68 61 6e 67 65 |.4.3....|- Change|
|00005c00| 64 20 23 69 6e 63 6c 75 | 64 65 20 6f 66 20 46 6c |d #inclu|de of Fl|
|00005c10| 65 78 4c 65 78 65 72 2e | 68 20 74 6f 20 75 73 65 |exLexer.|h to use|
|00005c20| 20 3c 3e 20 69 6e 73 74 | 65 61 64 20 6f 66 20 22 | <> inst|ead of "|
|00005c30| 22 2e 0a 0a 09 2d 20 41 | 64 64 65 64 20 66 65 61 |"....- A|dded fea|
|00005c40| 74 75 72 65 20 74 6f 20 | 63 6f 6e 74 72 6f 6c 20 |ture to |control |
|00005c50| 77 68 65 74 68 65 72 20 | 74 68 65 20 73 63 61 6e |whether |the scan|
|00005c60| 6e 65 72 20 61 74 74 65 | 6d 70 74 73 20 74 6f 0a |ner atte|mpts to.|
|00005c70| 09 20 20 72 65 66 69 6c | 6c 20 74 68 65 20 69 6e |. refil|l the in|
|00005c80| 70 75 74 20 62 75 66 66 | 65 72 20 6f 6e 63 65 20 |put buff|er once |
|00005c90| 69 74 27 73 20 65 78 68 | 61 75 73 74 65 64 2e 20 |it's exh|austed. |
|00005ca0| 20 54 68 69 73 20 66 65 | 61 74 75 72 65 0a 09 20 | This fe|ature.. |
|00005cb0| 20 77 69 6c 6c 20 62 65 | 20 64 6f 63 75 6d 65 6e | will be| documen|
|00005cc0| 74 65 64 20 69 6e 20 74 | 68 65 20 32 2e 35 20 72 |ted in t|he 2.5 r|
|00005cd0| 65 6c 65 61 73 65 2e 0a | 0a 0a 43 68 61 6e 67 65 |elease..|..Change|
|00005ce0| 73 20 62 65 74 77 65 65 | 6e 20 72 65 6c 65 61 73 |s betwee|n releas|
|00005cf0| 65 20 32 2e 34 2e 34 20 | 28 30 37 44 65 63 39 33 |e 2.4.4 |(07Dec93|
|00005d00| 29 20 61 6e 64 20 72 65 | 6c 65 61 73 65 20 32 2e |) and re|lease 2.|
|00005d10| 34 2e 33 3a 0a 0a 09 2d | 20 46 69 78 65 64 20 74 |4.3:...-| Fixed t|
|00005d20| 77 6f 20 73 65 72 69 6f | 75 73 20 62 75 67 73 20 |wo serio|us bugs |
|00005d30| 69 6e 20 73 63 61 6e 6e | 69 6e 67 20 38 2d 62 69 |in scann|ing 8-bi|
|00005d40| 74 20 63 68 61 72 61 63 | 74 65 72 73 2e 0a 0a 09 |t charac|ters....|
|00005d50| 2d 20 46 69 78 65 64 20 | 62 75 67 20 69 6e 20 59 |- Fixed |bug in Y|
|00005d60| 59 5f 55 53 45 52 5f 41 | 43 54 49 4f 4e 20 74 68 |Y_USER_A|CTION th|
|00005d70| 61 74 20 63 61 75 73 65 | 64 20 69 74 20 74 6f 20 |at cause|d it to |
|00005d80| 62 65 20 65 78 65 63 75 | 74 65 64 0a 09 20 20 69 |be execu|ted.. i|
|00005d90| 6e 61 70 70 72 6f 70 72 | 69 61 74 65 6c 79 20 28 |nappropr|iately (|
|00005da0| 6f 6e 20 74 68 65 20 73 | 63 61 6e 6e 65 72 27 73 |on the s|canner's|
|00005db0| 20 6f 77 6e 20 69 6e 74 | 65 72 6e 61 6c 20 61 63 | own int|ernal ac|
|00005dc0| 74 69 6f 6e 73 2c 20 61 | 6e 64 0a 09 20 20 77 69 |tions, a|nd.. wi|
|00005dd0| 74 68 20 69 6e 63 6f 72 | 72 65 63 74 20 79 79 74 |th incor|rect yyt|
|00005de0| 65 78 74 2f 79 79 6c 65 | 6e 67 20 76 61 6c 75 65 |ext/yyle|ng value|
|00005df0| 73 29 2e 0a 0a 09 2d 20 | 46 69 78 65 64 20 62 75 |s)....- |Fixed bu|
|00005e00| 67 20 69 6e 20 70 6f 69 | 6e 74 69 6e 67 20 79 79 |g in poi|nting yy|
|00005e10| 69 6e 20 61 74 20 61 20 | 6e 65 77 20 66 69 6c 65 |in at a |new file|
|00005e20| 20 61 6e 64 20 72 65 73 | 75 6d 69 6e 67 20 73 63 | and res|uming sc|
|00005e30| 61 6e 6e 69 6e 67 2e 0a | 0a 09 2d 20 50 6f 72 74 |anning..|..- Port|
|00005e40| 61 62 69 6c 69 74 79 20 | 66 69 78 20 72 65 67 61 |ability |fix rega|
|00005e50| 72 64 69 6e 67 20 6d 69 | 6e 2f 6d 61 78 2f 61 62 |rding mi|n/max/ab|
|00005e60| 73 20 6d 61 63 72 6f 73 | 20 63 6f 6e 66 6c 69 63 |s macros| conflic|
|00005e70| 74 69 6e 67 20 77 69 74 | 68 0a 09 20 20 66 75 6e |ting wit|h.. fun|
|00005e80| 63 74 69 6f 6e 20 64 65 | 66 69 6e 69 74 69 6f 6e |ction de|finition|
|00005e90| 73 20 69 6e 20 73 74 61 | 6e 64 61 72 64 20 68 65 |s in sta|ndard he|
|00005ea0| 61 64 65 72 20 66 69 6c | 65 73 2e 0a 0a 09 2d 20 |ader fil|es....- |
|00005eb0| 41 64 64 65 64 20 61 20 | 76 69 72 74 75 61 6c 20 |Added a |virtual |
|00005ec0| 4c 65 78 65 72 45 72 72 | 6f 72 28 29 20 6d 65 74 |LexerErr|or() met|
|00005ed0| 68 6f 64 20 74 6f 20 74 | 68 65 20 43 2b 2b 20 79 |hod to t|he C++ y|
|00005ee0| 79 46 6c 65 78 4c 65 78 | 65 72 20 63 6c 61 73 73 |yFlexLex|er class|
|00005ef0| 0a 09 20 20 66 6f 72 20 | 72 65 70 6f 72 74 69 6e |.. for |reportin|
|00005f00| 67 20 65 72 72 6f 72 20 | 6d 65 73 73 61 67 65 73 |g error |messages|
|00005f10| 20 69 6e 73 74 65 61 64 | 20 6f 66 20 61 6c 77 61 | instead| of alwa|
|00005f20| 79 73 20 75 73 69 6e 67 | 20 63 65 72 72 2e 0a 0a |ys using| cerr...|
|00005f30| 09 2d 20 41 64 64 65 64 | 20 77 61 72 6e 69 6e 67 |.- Added| warning|
|00005f40| 20 69 6e 20 66 6c 65 78 | 64 6f 63 20 74 68 61 74 | in flex|doc that|
|00005f50| 20 74 68 65 20 43 2b 2b | 20 73 63 61 6e 6e 69 6e | the C++| scannin|
|00005f60| 67 20 63 6c 61 73 73 20 | 69 73 20 70 72 65 73 65 |g class |is prese|
|00005f70| 6e 74 6c 79 0a 09 20 20 | 65 78 70 65 72 69 6d 65 |ntly.. |experime|
|00005f80| 6e 74 61 6c 20 61 6e 64 | 20 73 75 62 6a 65 63 74 |ntal and| subject|
|00005f90| 20 74 6f 20 63 6f 6e 73 | 69 64 65 72 61 62 6c 65 | to cons|iderable|
|00005fa0| 20 63 68 61 6e 67 65 20 | 62 65 74 77 65 65 6e 20 | change |between |
|00005fb0| 6d 61 6a 6f 72 0a 09 20 | 20 72 65 6c 65 61 73 65 |major.. | release|
|00005fc0| 73 2e 0a 0a 0a 43 68 61 | 6e 67 65 73 20 62 65 74 |s....Cha|nges bet|
|00005fd0| 77 65 65 6e 20 72 65 6c | 65 61 73 65 20 32 2e 34 |ween rel|ease 2.4|
|00005fe0| 2e 33 20 28 30 33 44 65 | 63 39 33 29 20 61 6e 64 |.3 (03De|c93) and|
|00005ff0| 20 72 65 6c 65 61 73 65 | 20 32 2e 34 2e 32 3a 0a | release| 2.4.2:.|
|00006000| 0a 09 2d 20 46 69 78 65 | 64 20 62 75 67 20 63 61 |..- Fixe|d bug ca|
|00006010| 75 73 69 6e 67 20 66 61 | 74 61 6c 20 73 63 61 6e |using fa|tal scan|
|00006020| 6e 65 72 20 6d 65 73 73 | 61 67 65 73 20 74 6f 20 |ner mess|ages to |
|00006030| 66 61 69 6c 20 74 6f 20 | 70 72 69 6e 74 2e 0a 0a |fail to |print...|
|00006040| 09 2d 20 46 69 78 65 64 | 20 74 68 69 6e 67 73 20 |.- Fixed| things |
|00006050| 73 6f 20 46 6c 65 78 4c | 65 78 65 72 2e 68 20 63 |so FlexL|exer.h c|
|00006060| 61 6e 20 62 65 20 69 6e | 63 6c 75 64 65 64 20 69 |an be in|cluded i|
|00006070| 6e 20 6f 74 68 65 72 20 | 43 2b 2b 0a 09 20 20 73 |n other |C++.. s|
|00006080| 6f 75 72 63 65 73 2e 20 | 20 4f 6e 65 20 73 69 64 |ources. | One sid|
|00006090| 65 2d 65 66 66 65 63 74 | 20 6f 66 20 74 68 69 73 |e-effect| of this|
|000060a0| 20 63 68 61 6e 67 65 20 | 69 73 20 74 68 61 74 20 | change |is that |
|000060b0| 2d 2b 20 61 6e 64 20 2d | 43 46 0a 09 20 20 61 72 |-+ and -|CF.. ar|
|000060c0| 65 20 6e 6f 77 20 69 6e | 63 6f 6d 70 61 74 69 62 |e now in|compatib|
|000060d0| 6c 65 2e 0a 0a 09 2d 20 | 6c 69 62 66 6c 2e 61 20 |le....- |libfl.a |
|000060e0| 6e 6f 77 20 73 75 70 70 | 6c 69 65 73 20 70 72 69 |now supp|lies pri|
|000060f0| 76 61 74 65 20 76 65 72 | 73 69 6f 6e 73 20 6f 66 |vate ver|sions of|
|00006100| 20 74 68 65 20 74 68 65 | 20 3c 73 74 72 69 6e 67 | the the| <string|
|00006110| 2e 68 3e 2f 0a 09 20 20 | 3c 73 74 72 69 6e 67 73 |.h>/.. |<strings|
|00006120| 2e 68 3e 20 73 74 72 69 | 6e 67 20 72 6f 75 74 69 |.h> stri|ng routi|
|00006130| 6e 65 73 20 6e 65 65 64 | 65 64 20 62 79 20 66 6c |nes need|ed by fl|
|00006140| 65 78 20 61 6e 64 20 74 | 68 65 20 73 63 61 6e 6e |ex and t|he scann|
|00006150| 65 72 73 0a 09 20 20 69 | 74 20 67 65 6e 65 72 61 |ers.. i|t genera|
|00006160| 74 65 73 2c 20 74 6f 20 | 65 6e 68 61 6e 63 65 20 |tes, to |enhance |
|00006170| 70 6f 72 74 61 62 69 6c | 69 74 79 20 74 6f 20 73 |portabil|ity to s|
|00006180| 6f 6d 65 20 42 53 44 20 | 73 79 73 74 65 6d 73 2e |ome BSD |systems.|
|00006190| 0a 0a 09 2d 20 4d 6f 72 | 65 20 72 6f 62 75 73 74 |...- Mor|e robust|
|000061a0| 20 73 6f 6c 75 74 69 6f | 6e 20 74 6f 20 32 2e 34 | solutio|n to 2.4|
|000061b0| 2e 32 27 73 20 66 6c 65 | 78 66 61 74 61 6c 28 29 |.2's fle|xfatal()|
|000061c0| 20 62 75 67 20 66 69 78 | 2e 0a 0a 09 2d 20 41 64 | bug fix|....- Ad|
|000061d0| 64 65 64 20 72 61 6e 6c | 69 62 20 6f 66 20 69 6e |ded ranl|ib of in|
|000061e0| 73 74 61 6c 6c 65 64 20 | 6c 69 62 66 6c 2e 61 2e |stalled |libfl.a.|
|000061f0| 0a 0a 09 2d 20 53 6f 6d | 65 20 6c 69 6e 74 20 74 |...- Som|e lint t|
|00006200| 77 65 61 6b 73 2e 0a 0a | 09 2d 20 4e 4f 54 45 3a |weaks...|.- NOTE:|
|00006210| 20 70 72 6f 62 6c 65 6d | 73 20 68 61 76 65 20 62 | problem|s have b|
|00006220| 65 65 6e 20 65 6e 63 6f | 75 6e 74 65 72 65 64 20 |een enco|untered |
|00006230| 61 74 74 65 6d 70 74 69 | 6e 67 20 74 6f 20 62 75 |attempti|ng to bu|
|00006240| 69 6c 64 20 66 6c 65 78 | 0a 09 20 20 43 2b 2b 20 |ild flex|.. C++ |
|00006250| 73 63 61 6e 6e 65 72 73 | 20 75 73 69 6e 67 20 67 |scanners| using g|
|00006260| 2b 2b 20 76 65 72 73 69 | 6f 6e 20 32 2e 35 2e 58 |++ versi|on 2.5.X|
|00006270| 2e 20 20 54 68 65 20 70 | 72 6f 62 6c 65 6d 20 69 |. The p|roblem i|
|00006280| 73 20 64 75 65 20 74 6f | 20 61 6e 0a 09 20 20 75 |s due to| an.. u|
|00006290| 6e 66 6f 72 74 75 6e 61 | 74 65 20 68 65 75 72 69 |nfortuna|te heuri|
|000062a0| 73 74 69 63 20 69 6e 20 | 67 2b 2b 20 32 2e 35 2e |stic in |g++ 2.5.|
|000062b0| 58 20 74 68 61 74 20 61 | 74 74 65 6d 70 74 73 20 |X that a|ttempts |
|000062c0| 74 6f 20 64 69 73 63 65 | 72 6e 20 62 65 74 77 65 |to disce|rn betwe|
|000062d0| 65 6e 0a 09 20 20 43 20 | 61 6e 64 20 43 2b 2b 20 |en.. C |and C++ |
|000062e0| 68 65 61 64 65 72 73 2e | 20 20 42 65 63 61 75 73 |headers.| Becaus|
|000062f0| 65 20 46 6c 65 78 4c 65 | 78 65 72 2e 68 20 69 73 |e FlexLe|xer.h is|
|00006300| 20 69 6e 73 74 61 6c 6c | 65 64 20 28 62 79 20 64 | install|ed (by d|
|00006310| 65 66 61 75 6c 74 29 0a | 09 20 20 69 6e 20 2f 75 |efault).|. in /u|
|00006320| 73 72 2f 6c 6f 63 61 6c | 2f 69 6e 63 6c 75 64 65 |sr/local|/include|
|00006330| 20 61 6e 64 20 6e 6f 74 | 20 2f 75 73 72 2f 6c 6f | and not| /usr/lo|
|00006340| 63 61 6c 2f 6c 69 62 2f | 67 2b 2b 2d 69 6e 63 6c |cal/lib/|g++-incl|
|00006350| 75 64 65 2c 20 67 2b 2b | 20 32 2e 35 2e 58 0a 09 |ude, g++| 2.5.X..|
|00006360| 20 20 64 65 63 69 64 65 | 73 20 74 68 61 74 20 69 | decide|s that i|
|00006370| 74 27 73 20 61 20 43 20 | 68 65 61 64 65 72 20 3a |t's a C |header :|
|00006380| 2d 28 2e 20 20 53 6f 20 | 69 66 20 79 6f 75 20 68 |-(. So |if you h|
|00006390| 61 76 65 20 70 72 6f 62 | 6c 65 6d 73 2c 20 69 6e |ave prob|lems, in|
|000063a0| 73 74 61 6c 6c 0a 09 20 | 20 74 68 65 20 68 65 61 |stall.. | the hea|
|000063b0| 64 65 72 20 69 6e 20 2f | 75 73 72 2f 6c 6f 63 61 |der in /|usr/loca|
|000063c0| 6c 2f 6c 69 62 2f 67 2b | 2b 2d 69 6e 63 6c 75 64 |l/lib/g+|+-includ|
|000063d0| 65 20 69 6e 73 74 65 61 | 64 2e 0a 0a 0a 43 68 61 |e instea|d....Cha|
|000063e0| 6e 67 65 73 20 62 65 74 | 77 65 65 6e 20 72 65 6c |nges bet|ween rel|
|000063f0| 65 61 73 65 20 32 2e 34 | 2e 32 20 28 30 31 44 65 |ease 2.4|.2 (01De|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.