Re: is lex useful?

bos@serpentine.com (Bryan O'Sullivan)
26 Jun 1996 11:34:17 -0400

          From comp.compilers

Related articles
is lex useful? kelley@phys.ocean.dal.ca (Dan E. Kelley) (1996-06-21)
Re: is lex useful? qjackson@direct.ca (1996-06-23)
Re: is lex useful? rkanagy@erols.com (Ronald Kanagy) (1996-06-23)
Re: is lex useful? qjackson@direct.ca (1996-06-24)
Re: is lex useful? kelley@Phys.Ocean.Dal.Ca (1996-06-24)
Re: is lex useful? Scott.Nicol@infoadvan.com (1996-06-24)
Re: is lex useful? kanze@lts.sel.alcatel.de (1996-06-24)
Re: is lex useful? bos@serpentine.com (1996-06-26)
Re: is lex useful? dhami@mdd.comm.mot.com (1996-06-26)
Re: is lex useful? stefan.monnier@lia.di.epfl.ch (Stefan Monnier) (1996-06-26)
Re: is lex useful? raph@kiwi.cs.berkeley.edu (1996-06-26)
Re: is lex useful? rgreen@barach.bbn.com (1996-06-26)
Re: is lex useful? leichter@smarts.com (Jerry Leichter) (1996-06-27)
Re: is lex useful? scooter@mccabe.com (Scott Stanchfield) (1996-06-27)
[15 later articles]
| List of all articles for this month |

From: bos@serpentine.com (Bryan O'Sullivan)
Newsgroups: comp.compilers
Date: 26 Jun 1996 11:34:17 -0400
Organization: Polymorphous Thaumaturgy
References: 96-06-073 96-06-105
Keywords: lex, i18n

Scott.Nicol@infoadvan.com (Scott Nicol) writes:


s> - No support for wide (>8 bit) character sets. Even 8-bit support is
s> fairly recent. The obvious implementation for wide characters
s> (expand tables to 16 bits) isn't practical, because you would
s> increase the tables sizes (which are already huge) 256x.


Dennis Ritchie (I think) wrote a paper on wide-character regular
expression matching a few years ago; it used to be included in the
papers that came with Plan 9, but I haven't seen an online copy in
several years.


As far as I can remember, the solution he used for Plan 9 involved
building sparse tables. This is a fairly obvious thing to do, and the
extra indirection used to provide sparseness imposes some performance
penalty, but it saves gobs of space.


<b


--
bos@eng.sun.com
bos@serpentine.com
http://www.serpentine.com/~bos
--


Post a followup to this message

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