Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!brl-adm!adm!vern@lbl-csam.arpa From: vern@lbl-csam.arpa (Vern Paxson) Newsgroups: comp.unix.wizards Subject: Re: Misuse of lex Message-ID: <4829@brl-adm.ARPA> Date: Mon, 9-Mar-87 23:08:59 EST Article-I.D.: brl-adm.4829 Posted: Mon Mar 9 23:08:59 1987 Date-Received: Tue, 10-Mar-87 07:18:14 EST Sender: news@brl-adm.ARPA Lines: 13 Mohamed Ellozy wrote that it is a misuse of lex to recognize a long list of reserved words along with a general identifier pattern, because the resulting lexical analyzers are huge and take forever to generate and compile. This is quite true; however, we have a from-the-ground-up rewrite of lex, soon to be made available, which is optimized for just these kinds of scanners. It runs much faster than lex and produces smaller scanners which execute faster. If there's interest and Mohamed mails me his inputs, I'll make the timings for our version of lex, and perhaps win a few converts to recognizing keywords with lex. Vern Paxson vern@lbl-csam.arpa Real Time Systems ucbvax!lbl-csam.arpa!vern Lawrence Berkeley Laboratory (415) 486-6411