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


Groups > comp.compilers > #2816

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 Sun, 9 Jan 2022 17:03:02 -0800 (PST)
Organization Compilers Central
Lines 28
Sender news@iecc.com
Approved comp.compilers@iecc.com
Message-ID <22-01-040@comp.compilers> (permalink)
References <22-01-023@comp.compilers> <22-01-025@comp.compilers> <22-01-036@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="63462"; mail-complaints-to="abuse@iecc.com"
Keywords lex, history, comment
Posted-Date 09 Jan 2022 20:46:00 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-036@comp.compilers>
Xref csiph.com comp.compilers:2816

Show key headers only | View raw


On Sunday, January 9, 2022 at 1:45:11 PM UTC-8, Aharon Robbins wrote:
> In article <22-0...@comp.compilers>, gah4 <ga...@u.washington.edu> wrote:
> >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?

> >A web search for lex source found this:

> >http://heirloom.sourceforge.net/devtools.html

> >which sounds like exactly what you want.
> I got this to build and run, but it ran out of buffer space. :-(

I compiled what I believe is actual lex on Linux.  There were two compile
time errors to fix, and a bunch of warnings that I didn't fix.

The warnings are related to pointer conversions, so I hope it
does it right.

I then ran it with the sample program in the Wikipedia lex article,
and it ran out of buffer space.  It isn't very big, either.

But then I ran it with the sample from the Solaris lex man page,
and it works.  It even works with -r to generate ratfor output.
(As far as I know, flex doens't have the -r option.)

In any case, I don't understand the buffer space message.
[AT&T lex was a student summer project and it has a bunch of fixed
size buffers. -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