🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Kevin Quentin Sullivan Fri, 07 Aug 1992 18:40
flex and EBCDIC
#224
Author: Kevin Quentin Sullivan
Date: Fri, 07 Aug 1992 18:40
16 lines
1084 bytes
I'm trying to compile flex on a VM/CMS machine (which is EBCDIC... yuk!).

It seems that flex "bootstraps" itself; it ships with a scan.c, uses that
to make a version of flex, uses that version to make a new (better?)
scan.c from scan.l, and then compiles flex again.  This is all well and
good, except that the scan.c shipped assumes that the input will be
ASCII.

Does anyone have any good ideas on how to generate a scan.c which will
read EBCDIC?  I'd rather not go through it by hand and translate the
appropriate parts to EBCDIC; it wasn't made to be human-readable and
I'm afraid that I'd introduce some new, exciting bugs to it.

     -Kevin

"Laugh it up, fuzzball."  --Han Solo
Re: flex and EBCDIC
#233
Author: Vern Paxson
Date: Sat, 08 Aug 1992 17:29
19 lines
1390 bytes
In article <92220.144059KQS@psuvm.psu.edu> KQS@psuvm.psu.edu (Kevin Quentin Sullivan) writes:
> I'm trying to compile flex on a VM/CMS machine (which is EBCDIC... yuk!).
> ...
> Does anyone have any good ideas on how to generate a scan.c which will
> read EBCDIC?  I'd rather not go through it by hand and translate the
> appropriate parts to EBCDIC ...

An EBCDIC port was been done a couple of years ago by Jim Boyer.  You can
reach him at boyer@dhiavm.bitnet (you might also try ied@psuvm.psu.edu).
At the time he indicated he'd be happy to field related questions.  His
basic approach was to modify the parser to translate ASCII to EBCDIC; he
then built a bootstrap version of scan.c on an ASCII machine and moved it
over to the EBCDIC machine.

		Vern

	Vern Paxson				vern@ee.lbl.gov
	Computer Systems Engineering		ucbvax!ee.lbl.gov!vern
	Lawrence Berkeley Laboratory		(510) 486-7504
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads