[comp.os.msdos.programmer] PD Lex?

mmshah@athena.mit.edu (Milan M Shah) (11/16/90)

Hi!

Is there a PD lex for the PC available? I downloaded lex.arc from the simtel
archive from msdos/c, but it seems ancient - no docs, files dated circa 82,
written for something called DeSmet C, and actually talks about bcpl (Wow!
*That's* dated!). In anycase, I tried to make it compile under MSC 6.0, and
it won't work at all. For example, it has code that looks like

 struct some_struct **sp;... sp->some_field = ... /* what is this??! */

In short, pretty useless. Does anyone know of a more current version?

Thanks!

Milan
.

w8sdz@vela.acs.oakland.edu (Keith Petersen) (11/16/90)

mmshah@athena.mit.edu (Milan M Shah) writes:
>Is there a PD lex for the PC available? I downloaded lex.arc from the simtel
>archive from msdos/c, but it seems ancient - no docs, files dated circa 82,

WSMR-SIMTEL20.ARMY.MIL [26.2.0.74]

Directory PD1:<MSDOS.TXTUTL>
 Filename   Type Length   Date    Description
==============================================
LEX_YACC.ARC  B  182821  900301  Lex/Yacc compiler compiler, w/Turbo Pascal src

This file is also available from Detroit Download Central.

Keith
--
Keith Petersen
Co-SysOp, Detroit Download Central 313-885-3956 (212/V22bis/HST/V32/V42bis)
Internet: w8sdz@vela.acs.oakland.edu,  w8sdz@eddie.mit.edu,  w8sdz@brl.mil
BITNET: w8sdz@OAKLAND                         Uucp: uunet!umich!vela!w8sdz

lsalomo@hubcap.clemson.edu (lsalomo) (11/16/90)

Can I complain a little about lex_yacc.arc?  First, it generates Pascal
source code (I was kind of hoping for C).  Second, it doesn't come with source
code to the lex and yacc (I was kind of hoping to port it to OS/2).

Granted, it is Shareware, so I don't complain loud, but still I figured those 
two points should be noted.

Cheers,
Q - the "Q"uestor for knowledge (, a degree, etc.)

lsalomo@hubcap.clemson.edu
ibmman@clemson.clemson.edu
=============================================================================
"Gee Wally, I think there's something wrong with the Beaver."
=============================================================================

trier@cwlim.INS.CWRU.Edu (Stephen C. Trier) (11/18/90)

I've done ports of Flex 2.1 (the name means "Fast Lex") and Berkeley
YACC to MS-DOS.  Both do not copyright their output in any way.  The
latest release of flex is 2.3, and I think it includes built-in MS-DOS
support.  Check comp.sources.unix (I think) for a few months ago for
a copy.

I'm happy to mail out copies of either program.

-- 
Stephen Trier                              Case Western Reserve University
Work: trier@cwlim.ins.cwru.edu             Information Network Services
Home: sct@seldon.clv.oh.us               %% Any opinions above are my own. %%

mju@mudos.ann-arbor.mi.us (Marc Unangst) (11/19/90)

lsalomo@hubcap.clemson.edu (lsalomo) writes:
> Can I complain a little about lex_yacc.arc?  First, it generates Pascal
[...]

Why not use GNU flex, available at a GNUish archive site near you?
(If you don't know of one, try wuarchive.wustl.edu:
/mirrors/msdos/gnudos or ocf.berkeley.edu.)

--
Marc Unangst               |
mju@mudos.ann-arbor.mi.us  | "Bus error: passengers dumped"
...!umich!leebai!mudos!mju | 

mmshah@fred-saberhagen.MIT.EDU (Milan M Shah) (11/21/90)

Ok, that does it. First, thanks to the many replies suggesting I use flex,
available from wuarchive, ocf.berkeley, vulcan, and (I found this myself,
I am *so* proud) from terminator.

It seems to me that there are atleast 4 different versions of flex, all
purporting to be v 2.3, and none of them seem to work. Here are the
problems I have encountered:

a) flex236.zoo from vulcan - dies saying it can't find flex.ske.
b) flex236.zoo from ocf - works ok, but the resulting lexyy.c file won't 
     compile under MSC 6.0; it dies with an internal compiler error, and
     tells me to contact Microsoft Support. 
c) flex.zip from terminator - well documented, but also dies with internal
     compiler error.
d) flex received via private email - dies with internal compiler error, but
     is different from the above three because it doesn't support some of
     the command line options that the above three do. Not that it matters,
     my point is that it is a different thing.

So, can anyone point me to a working copy of flex? The last thing I want to
do is download it from prep.ai and create yet a fifth port...

Also, I have it from a knowledgeable source that the internal errors are
caused due to a severe bug in MSC 6.0's register allocation. He even 
suggested a fix, but I am not sure which flex his workaround was supposed to
fix!!!

Milan
.