Path: csiph.com!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: jan van katwijk Newsgroups: comp.compilers Subject: Re: Are transpiling techniques different than compiling techniques? Date: Tue, 12 Oct 2021 17:59:50 +0200 Organization: Compilers Central Lines: 35 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <21-10-020@comp.compilers> References: <21-10-017@comp.compilers> <21-10-019@comp.compilers> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="19208"; mail-complaints-to="abuse@iecc.com" Keywords: translator, history, algol60 Posted-Date: 12 Oct 2021 22:12:03 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com In-Reply-To: <21-10-019@comp.compilers> Xref: csiph.com comp.compilers:2728 I have - long time ago - written al Algol 60 to C translator. Not one where "some intermediate machine" is defined and implemented in C, but each Algol 60 construct is mapped upon - hopefully - semantically equivalent C constructs. Looking at the translation process it is just a simplified compiler, which a parser, a scan for name resolution, a scan to generate an include file and a scan to map Algol procedures to C procedures. Apart from handling by name parameters, to be mapped into (almost) parameterless procedures, to function parameters (in Algol one does not specify the parameter profile of a formal procedure parameter) and - to a certain extent - switches and labels as parameter, it is fairly straight forward (extensive description is available, see " https://github.com/JvanKatwijk/algol-60-compiler). I would not give it another name than translator or compiler. Of course mapping any language to any other language may give problems, in the 80-ies we made a subset A60 to Ada translator, and direct mapping of by name parameters and things like non-local gotos is not well possible (but then, the programs that needed to be translated was simply structured, apart from a few goto's no big problems) jan Op di 12 okt. 2021 om 17:18 schreef Detlef Meyer-Eltz < Meyer-Eltz@t-online.de>: > I'm working for years on the Delphi to C++ translater "Delphi2Cpp", > without beeing aware, that this kind of software is called a "transpiler". > [ by some people ]