Pascal-to-C translator
Dave Haynie
daveh at cbmvax.cbm.UUCP
Fri Apr 11 02:22:22 AEST 1986
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"
More information about the Comp.lang.c
mailing list