|Translating from lagugae which allows Goto's email@example.com (Dana Freer) (2003-07-04)|
|Re: Translating from language which allows Goto's Thomas.Schneider@donauland.at (2003-07-13)|
|Re: Translating from language which allows Goto's firstname.lastname@example.org (2003-07-13)|
|Re: Translating from language which allows Goto's email@example.com (Dennis Ritchie) (2003-07-15)|
|Re: Translating from language which allows Goto's firstname.lastname@example.org (2003-07-21)|
|Re: Translating from language which allows Goto's email@example.com (Lorenzo Bettini) (2003-07-21)|
|Re: Translating from language which allows Goto's firstname.lastname@example.org (email@example.com) (2003-07-25)|
|From:||"Dennis Ritchie" <firstname.lastname@example.org>|
|Date:||15 Jul 2003 23:50:57 -0400|
|Posted-Date:||15 Jul 2003 23:50:57 EDT|
"Allen McIntosh" <email@example.com> wrote
> Dana Freer <firstname.lastname@example.org> wrote:
> >I am not a compiler writer but have the task of writing a tranlslator to
> >convert from a language which allows GOTO, GOSUB, RETURN into a language
> >(like VbScript) which does not alllow GOTO etc. Is this impossible? Will
> >human intervention always be required?
> You should try to see if Brenda Baker ever wrote up "struct". It was
> a program that converted Fortran into Ratfor. (Better yet, send her
> e-mail.) My guess is that you can do what you want unless the
> flowgraph is irreducible.
> [I'm pretty sure I've read a BTL tech report. It was quite impressive]
I tried to find a local CSTR or other machine-readable paper, without
success. Brenda does list these publications:
B.S. Baker, An Algorithm for Structuring Flowgraphs, J. ACM 24,1 , January, 1977, pp. 98--120.
B.S. Baker, An Algorithm for Structuring Programs: Extended Abstract, Proc. 3rd ACM Symposium
on Principles of Programming Languages, January 1976, pp. 98-120.
(I'm suspicious of the identical page numbers...)
Her struct tool was distributed with 7th Edition Unix, but wasn't maintained.
Return to the
Search the comp.compilers archives again.