Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #2800

Re: Looking for Unix lex for modern systems

Path csiph.com!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end
From gah4 <gah4@u.washington.edu>
Newsgroups comp.compilers
Subject Re: Looking for Unix lex for modern systems
Date Thu, 6 Jan 2022 16:42:32 -0800 (PST)
Organization Compilers Central
Lines 27
Sender news@iecc.com
Approved comp.compilers@iecc.com
Message-ID <22-01-024@comp.compilers> (permalink)
References <22-01-023@comp.compilers>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Injection-Info gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="30444"; mail-complaints-to="abuse@iecc.com"
Keywords lex
Posted-Date 06 Jan 2022 21:37:42 EST
X-submission-address compilers@iecc.com
X-moderator-address compilers-request@iecc.com
X-FAQ-and-archives http://compilers.iecc.com
In-Reply-To <22-01-023@comp.compilers>
Xref csiph.com comp.compilers:2800

Show key headers only | View raw


On Thursday, January 6, 2022 at 4:09:53 PM UTC-8, Aharon Robbins wrote:
> Can anyone point me at a version of Unix lex that will run on Linux?

On my Linux system, /usr/bin/lex is a symbolic link to /usr/bin/flex

On FreeBSD, they are both hard links to the same file.

On OS X, they are two different files (cmp -l shows differences)
of the same size.

A web search shows the Oracle lex man page for Solaris, which does not mention
flex, and so might not be a link of any kind.

I have hardware that can run SunOS and Solaris.  (It should be easy to find
hardware to run Solaris-x86 versions.)

As to actual copyright AT&T lex, that might be a little harder.
[Flex can take the same input as lex but its internals are totally different.

Bell Labs long ago released the code to early Unix systems. The source
for lex is here:
https://minnie.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/lex or on
the 4.2BSD src archive at
https://www.tuhs.org/Archive/Distributions/UCB/4.2BSD/
I tried to compile the 4.2BSD version on FreeBSD and the errors were
ugly. -John]

Back to comp.compilers | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Looking for Unix lex for modern systems arnold@skeeve.com (Aharon Robbins) - 2022-01-06 20:17 +0000
  Re: Looking for Unix lex for modern systems gah4 <gah4@u.washington.edu> - 2022-01-06 16:42 -0800
    Re: Looking for Unix lex for modern systems gah4 <gah4@u.washington.edu> - 2022-01-07 15:36 -0800
  Re: Looking for Unix lex for modern systems gah4 <gah4@u.washington.edu> - 2022-01-07 02:39 -0800
    Re: Looking for Unix lex for modern systems arnold@skeeve.com (Aharon Robbins) - 2022-01-09 19:04 +0000
      Re: Looking for Unix lex for modern systems gah4 <gah4@u.washington.edu> - 2022-01-09 17:03 -0800
        Re: Looking for Unix lex for modern systems gah4 <gah4@u.washington.edu> - 2022-01-12 14:45 -0800

csiph-web