Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #2728

Re: Are transpiling techniques different than compiling techniques?

From jan van katwijk <j.vankatwijk@gmail.com>
Newsgroups comp.compilers
Subject Re: Are transpiling techniques different than compiling techniques?
Date 2021-10-12 17:59 +0200
Organization Compilers Central
Message-ID <21-10-020@comp.compilers> (permalink)
References <21-10-017@comp.compilers> <21-10-019@comp.compilers>

Show all headers | View raw


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 ]

Back to comp.compilers | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Are transpiling techniques different than compiling techniques? Roger L Costello <costello@mitre.org> - 2021-10-11 13:26 +0000
  Re: Are transpiling techniques different than compiling techniques? Kartik Agaram <ak@akkartik.com> - 2021-10-11 11:23 -0700
    Re: Are transpiling techniques different than compiling techniques? Hans-Peter Diettrich <DrDiettrich1@netscape.net> - 2021-10-12 20:05 +0200
    Re: Are transpiling techniques different than compiling techniques? Kaz Kylheku <480-992-1380@kylheku.com> - 2021-10-16 17:16 +0000
      Re: Are transpiling techniques different than compiling techniques? Thomas Koenig <tkoenig@netcologne.de> - 2021-10-16 20:22 +0000
      Re: Are transpiling techniques different than compiling techniques? Hans-Peter Diettrich <DrDiettrich1@netscape.net> - 2021-10-16 23:55 +0200
        Re: Are transpiling techniques different than compiling techniques? Hans-Peter Diettrich <DrDiettrich1@netscape.net> - 2021-10-17 07:02 +0200
          Re: Are transpiling techniques different than compiling techniques? gah4 <gah4@u.washington.edu> - 2021-10-17 15:01 -0700
  Re: Are transpiling techniques different than compiling techniques? "Detlef Meyer-Eltz" <Meyer-Eltz@t-online.de> - 2021-10-12 11:34 +0200
    Re: Are transpiling techniques different than compiling techniques? jan van katwijk <j.vankatwijk@gmail.com> - 2021-10-12 17:59 +0200
    Re: Are transpiling techniques different than compiling techniques? Hans-Peter Diettrich <DrDiettrich1@netscape.net> - 2021-10-12 20:19 +0200
    Re: Are transpiling techniques different than compiling techniques? Christopher F Clark <christopher.f.clark@compiler-resources.com> - 2021-10-14 00:33 +0300
    Re: Are transpiling techniques different than compiling techniques? Kaz Kylheku <480-992-1380@kylheku.com> - 2021-10-16 17:26 +0000
      Re: Are transpiling techniques different than compiling techniques? gah4 <gah4@u.washington.edu> - 2021-10-17 08:37 -0700

csiph-web