Related articles |
---|
c to Pascal translators? bdc2@po.CWRU.Edu (1998-02-18) |
Re: c to Pascal translators? adrian@dcs.rhbnc.ac.uk (1998-02-20) |
Re: c to Pascal translators? geert@sun3.iaf.nl (Geert Bosch) (1998-02-20) |
Re: c to Pascal translators? pdbaylie@eos.ncsu.edu (Peter D Baylies) (1998-02-20) |
Re: c to Pascal translators? ssu95atc@reading.ac.uk (Tony Curtis) (1998-02-20) |
Re: c to Pascal translators? derek@knosof.co.uk (1998-03-03) |
Re: c to Pascal translators? bweinra@uswest.com (Bret D Weinraub) (1998-03-05) |
Re: c to Pascal translators? bear@sonic.net (Ray Dillinger) (1998-03-06) |
[6 later articles] |
From: | adrian@dcs.rhbnc.ac.uk (A Johnstone) |
Newsgroups: | comp.compilers |
Date: | 20 Feb 1998 17:55:15 -0500 |
Organization: | Royal Holloway, University of London |
References: | 98-02-090 |
Keywords: | C, Pascal, translator |
Boris D. Cahan (bdc2@po.CWRU.Edu) wrote:
: I am desperately seeking a C to Pascal translator, preferably source
: code, I found some OLD postings in the 89 and 90 archives, but wasn't
: able to follow up on any.
Can't be done, in general. In particular function pointers in C have
no analogue in standard Pascal because there is no such thing as a
procedure variable in Pascal. Wirth did add procedure variables to
Modula-2, and Turbo Pascal has them as well. Lot sof other aspects of
C, such as the ... ? ... : ... if operator and the passing of
strcutured objects to prodcedures would be pretty hard too.
Adrian
--
Dr Adrian Johnstone, Senior Lecturer in Computing, Computer Science Dep,
Royal Holloway, University of London, Egham, Surrey, TW20 0EX, England.
Email a.johnstone@rhbnc.ac.uk Tel:+44(0)1784 443425 Fax:+44(0)1784 439786
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.