Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!ub!uhura.cc.rochester.edu!rochester!pt.cs.cmu.edu!o.gp.cs.cmu.edu!andrew.cmu.edu!vd09+ From: vd09+@andrew.cmu.edu (Vincent M. Del Vecchio) Newsgroups: comp.sys.mac.programmer Subject: Re: Think Pascal ==> Think C translation?? Message-ID: Date: 30 Oct 90 23:11:23 GMT References: <10893.27299090@amherst.bitnet> Organization: Carnegie Mellon, Pittsburgh, PA Lines: 25 In-Reply-To: <10893.27299090@amherst.bitnet> This may be overkill for what you want to do, but then again, maybe not. There is something called p2c, a Pascal to C translator for Unix (though I think it would probably be fairly portable to other OSes as well), which may be able to help you. It generates decent, working C code given Pascal input in any of several dialects. I'm not sure how close any of these is to Mac Pascals, but it should be acceptable. You can get this from comp.sources.unix, v21, i46+. Alternatively, I saw a Mac translator at one point, but it only handled basic control structures, and required a lot of work afterwards. p2c generates compilable C code. You may have problems with case sensitivity of C if you are making toolbox calls. I'm not sure how the translator handles such things. Hope this helps. +-------------------------------------------------------------------+ | Vincent Del Vecchio \ #include | | Box 4834 \ #include | | 5125 Margaret Morrison St.\ BITNET: vd09+%andrew@cmuccvma.bitnet | | Pittsburgh, PA 15213 \ UUCP: harvard!andrew.cmu.edu!vd09 | | (412) 268-4441 \ Internet: vd09+@andrew.cmu.edu | +-------------------------------------------------------------------+