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


Groups > comp.compilers > #2812

Re: Looking for Unix lex for modern systems

From arnold@skeeve.com (Aharon Robbins)
Newsgroups comp.compilers
Subject Re: Looking for Unix lex for modern systems
Date 2022-01-09 19:04 +0000
Organization Aioe.org NNTP Server
Message-ID <22-01-036@comp.compilers> (permalink)
References <22-01-023@comp.compilers> <22-01-025@comp.compilers>

Show all headers | View raw


In article <22-01-025@comp.compilers>, gah4  <gah4@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 have since made good progress with flex.  The original lexer
was doing its own token buffering. I moved to using yytext, and
also changed YY_INPUT to get one character of input at a time
as lex used to do.  These two together have allowed me to make
real progress.

Performance isn't an issue, so doing one character at a time is fine.

Thanks everyone for the help.
--
Aharon (Arnold) Robbins 		arnold AT skeeve DOT com

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