[net.lang.c] Pascal-to-C translator

tom@MITRE-BEDFORD.ARPA (04/01/86)

Is there such a beast?  If so, I would love to hear about it!! Let me know if
you find anything.

Thanks,

Trevor O. McCarthy

The MITRE Corporation

marvit@hplabsb.UUCP (Peter Marvit) (04/08/86)

> 
> Is there such a beast?  If so, I would love to hear about it!! Let me know if
> you find anything.
> 
I understand some general public domain attempts are in the works.  I 
*know* of only one, avaliable commercially.  I don't know the exact price;
I suspect there is some negotiation which could be done.  However, it would be
in the $1000-3000 range (gulp!).  Moreover, it is specifically designed for
SVS (Silicon Valley Systems) version of Pascal.  

For more info, try contacting Russ Salsbury or Erwin Morton @ Syntactics Corp,
3333 Bowers Ave, Santa Clara, CA 94501 (zip ???) or call 408/727-6400.

DISCLAIMER OF SORTS: I used to work for them as a documentation person.  Their
real business is word processors, tho' their backround is compilers.  They
built the Pascal-to-C for their own use and have commercialized it.  They are
honest engineers with a vision.  I was sorry to leave them, but went on to a
completly different field.

Good luck,
Peter Marvit  (...!hplabs!marvit)

daveh@cbmvax.cbm.UUCP (Dave Haynie) (04/10/86)

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"