is lex useful?

"Dan E. Kelley" <kelley@phys.ocean.dal.ca>
21 Jun 1996 17:07: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)
[28 later articles]
| List of all articles for this month |

From: "Dan E. Kelley" <kelley@phys.ocean.dal.ca>
Newsgroups: comp.compilers
Date: 21 Jun 1996 17:07:17 -0400
Organization: Compilers Central
Keywords: lex, question, comment

Although all the books suggest that lex is a good thing, even a great
thing, I've noticed that many real-world programs use hand-coded
lexical analysers. (For example, gawk, perl and bash appear not to
use lex.)


So, my question is: if lex is useful, why isn't it used? Is there
some snag (speed problems, perhaps, or difficult to port code?) that
makes it smart to avoid lex?


Thanks in advance for any advice from the pros!


Dan E. Kelley internet: mailto:Dan.Kelley@Dal.CA
Oceanography Department phone: (902)494-1694
Dalhousie University fax: (902)494-2885
Halifax, NS, CANADA, B3H 4J1 WWW: http://www.phys.ocean.dal.ca/~kelley
[AT&T lex is slow and buggy. I like flex a lot better. -John]
--


Post a followup to this message

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