Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!cs.dal.ca!silvert From: silvert@cs.dal.ca (Bill Silvert) Newsgroups: comp.sys.atari.st Subject: Re: PD lex & yacc for MS-DOS (and ST) Summary: Not absolutely essential! Message-ID: <1989Sep10.115547.26577@cs.dal.ca> Date: 10 Sep 89 11:55:47 GMT References: <8609@batcomputer.tn.cornell.edu> <4515e338.14a1f@force.UUCP> Sender: silvert@cs.dal.ca.UUCP (Bill Silvert) Reply-To: bill@biomel.UUCP Organization: Habitat Ecology Div., Bedford Inst. of Oceanography Lines: 20 In article <4515e338.14a1f@force.UUCP> covertr@force.UUCP (Richard E. Covert) writes: ... (quotes from Moshe Braner) > > I have the same need for lex and yacc but for a different reason. There >are many UNIX/C programs from the archives which require lex and/or yacc. >and so, there are hard to port without having lex and/or yacc on the ST. Lex and yacc generates C code, so you can always run them on a Unix box and port the C code (which is very bulky) to any machine which has a C compiler. You need to write a couple of routines like yywrap(), but these are pretty trivial (I think that yywrap() is the only function not defined in the output C code, and it can be a do-nothing -- it is a function loaded from llib.a if you don't write your own version). -- Bill Silvert, Habitat Ecology Division. Bedford Institute of Oceanography, Dartmouth, NS, Canada B2Y 4A2 UUCP: ...!{uunet,watmath}!dalcs!biomel!bill Internet: biomel@cs.dal.CA BITNET: bs%dalcs@dalac.BITNET