Re: Lex surrogates

Ken Yap <ken@cs.rochester.edu>
Thu, 09 Feb 89 04:14:50 -0500

          From comp.compilers

Related articles
Lex surrogates lfcs.edinburgh.ac.uk!db@NSS.CS.UCL.AC.UK (Dave Berry) (1989-02-05)
Re: Lex surrogates schmidt@ORION.CF.UCI.EDU (Douglas C. Schmidt) (1989-02-05)
Re: Lex surrogates vern@pistachio.ee.lbl.gov (Vern Paxson) (1989-02-06)
Re: Lex surrogates rsalz@BBN.COM (Rich Salz) (1989-02-07)
Re: Lex surrogates wpl@PRC.Unisys.COM (1989-02-06)
Re: Lex surrogates ken@cs.rochester.edu (Ken Yap) (1989-02-09)
Re: Lex surrogates mike@arizona.edu (1989-02-09)
Re: Lex surrogates tower@bu-cs.BU.EDU (1989-02-10)
Re: Lex surrogates pardo@june.cs.washington.edu (1989-02-11)
Re: Lex surrogates henry@zoo.toronto.edu (Henry Spencer) (1989-02-11)
Re: Lex surrogates holt@turing.toronto.edu (Ric Holt) (1989-02-13)
Re: Lex surrogates henry@zoo.toronto.edu (1989-02-16)
[1 later articles]
| List of all articles for this month |
In-Reply-To: <3299@ima.ima.isc.com>
Organization: U of Rochester, CS Dept, Rochester, NY
X-Uucp: ..!rochester!ken Internet: ken@cs.rochester.edu
X-Snail: CS Dept., U. of Roch., NY 14627. Voice: Ken!
Date: Thu, 09 Feb 89 04:14:50 -0500
From: Ken Yap <ken@cs.rochester.edu>

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 <ken@cs.rochester.edu>]
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.