- Pascal to Component Pascal translators

From: Bob Walkden <"Bob>
Date: Tue, 25 Oct 2005 21:31:53 +0100

----boundary-LibPST-iamunique-1631817825_-_-
Content-type: text/plain

Many, many years ago, in the early 1980s, I worked on a project converting a
payroll system from one form of Cobol to another. As part of this task I
rewrote a number of the programs without GOTOs. Although I found some fairly
simple rules-of-thumb for doing it, I never really found a foolproof
algorithm. I realised that one must exist because Jacopini and Boehm had
proved that there is an equivalent no GOTO program for every GOTO program,
so I read their paper:

C. Boehm and G. Jacopini, "Flow diagrams, Turing machines, and
languages with only two formation rules," Communications of the ACM, May
1966.

Unfortunately, I did not understand it.

--
Regards,
 Bob 
> -----Original Message-----
> From: blackbox{([at]})nowhere.xy> Behalf Of Campbell, Robert D (SELEX) (UK Edinburgh)
> Sent: 25 October 2005 10:46
> To: BlackBox Mailing List
> Subject: [BlackBox] - Pascal to Component Pascal translators
> 
> 
> Hi
> 
> As I remember it, Pascal has a GOTO
> statement and CP does not. Removing
> GOTOs I find one of the hardest tasks
> when 'hand' translating.
> 
> Do these tools automate this process
> successfully?, and is there a SIMPLE
> explanation of how they do it?
> 
> Cheers
> 
> Robert
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy----boundary-LibPST-iamunique-1631817825_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5c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 2005 - 22:31:53 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:07 UTC