Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!ames!decwrl!decvax!ima!compilers-sender From: ken@cs.rochester.edu (Ken Yap) Newsgroups: comp.compilers Subject: Re: Lex surrogates Message-ID: <3304@ima.ima.isc.com> Date: 9 Feb 89 09:14:50 GMT Sender: compilers-sender@ima.ima.isc.com Reply-To: Ken Yap Organization: U of Rochester, CS Dept, Rochester, NY Lines: 14 Approved: compilers@ima.UUCP In-Reply-To: <3299@ima.ima.isc.com> X-Uucp: ..!rochester!ken Internet: ken@cs.rochester.edu X-Snail: CS Dept., U. of Roch., NY 14627. Voice: Ken! This is straying from the subject but it is worth noting that one way flex gets its speed is by returning a pointer to the string comprising the token in place (no string copying). This can bite you if you are using flex with yacc/bison and you don't copy the string into your own variable right away. After the next terminal has been matched is too late. But I recommend flex heartily. [From Ken Yap ] -- Send compilers articles to ima!compilers or, in a pinch, to Levine@YALE.EDU Plausible paths are { decvax | harvard | yale | bbn}!ima Please send responses to the originator of the message -- I cannot forward mail accidentally sent back to compilers. Meta-mail to ima!compilers-request