Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!uwvax!caip!cbmvax!daveh From: daveh@cbmvax.cbm.UUCP (Dave Haynie) Newsgroups: net.lang.c Subject: Re: Pascal-to-C translator Message-ID: <63@cbmvax.cbmvax.cbm.UUCP> Date: Thu, 10-Apr-86 11:22:22 EST Article-I.D.: cbmvax.63 Posted: Thu Apr 10 11:22:22 1986 Date-Received: Sat, 12-Apr-86 22:01:24 EST References: <2268@brl-smoke.ARPA> <3411@hplabsb.UUCP> Reply-To: daveh@cbmvax.UUCP (Dave Haynie) Organization: Commodore Technology, West Chester, PA Lines: 18 In '82 I was working for the Carnegie-Mellon Electrical Engineering Department on a project that involved translating gobs of Berkley PASCAL into C. They had a program developed somewhere at CMU that did a degree of PASCAL to C translation. As I recall its largest problem was that it couldn't resolve the several levels of nested WITH constructs that our PASCAL code had. It wasn't a full translator, and I guess from the WITH problem it had that it was basically just re-arranging text from PASCAL to C style, it didn't keep a symbol table of PASCAL types which would have let it resolve some of the tougher things. But if it DID that I wouldn't have had much of a job. Anyway, you could probably contact someone at CMU through this net -- I don't know how they'd feel about distributing the program (ran on a VAX under UNIX), but it couldn't hurt to ask. -- Dave Haynie {inhp4,allegra,seismo}!cbmvax!daveh "When the going gets tough, the weird turn pro"