Can anyone point me at a version of Unix lex that will run on Linux?
Can anyone point me at a version of Unix lex that will run on Linux?
[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]
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.
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 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.
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]
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 17:32:13 |
Calls: | 6,646 |
Calls today: | 1 |
Files: | 12,190 |
Messages: | 5,327,171 |