from INDIA: Compiler vs. Translator



Well, I have developed a Part Compiler (Part Translator) for my own
language 'Astra'. The task of building it (still under
development.....) was similar to that of a compiler for it does
syntax error checking, macro substitution, actual translation to C
code, and now it has started executing some Astra programs on its own.

Therefore, Translators for the languages somewhat similar are also
like compilers if one wants to put in the effort to produce an
error-free code. Mine does the same and is on its way to becoming a
complete independent Astra code executer.

Paras Singh,
Research Engineer, India
[A useful translator has to do just about everything a compiler does. That's
because there are always small semantic differences between the source and
target language so that the obvious 1 for 1 translation doesn't quite do
the right thing, and the translater has to generate code to work around
the differences. -John]

.



Relevant Pages

  • Coding a translator between languages with high abstraction levels
    ... Language embedded in Haskell, http://www.haskell.org/). ... I don't have much experience in compiler design and development apart ... translator as a Haskell compiler backend (ForSyDe is just Haskell ...
    (comp.compilers)
  • Re: !generating ILAsm / compiler question
    ... The "language" is IL, for Intermediate Language or MSIL for Microsoft Intermediate Language. ... Technically, you could build a translator and then fire off a compiler, but you then have to trust the other compiler. ... As a software developer, you would prefer something where you have left your destiny under your own control, rather than partially under your control and partially under the control of another piece of software. ...
    (microsoft.public.dotnet.general)
  • What to put behind my front-end?
    ... I'm working on a compiler for a new language with a colleague. ... We're now finished with the translator, and I'm happy to say that it works ... I have plans to turn this project into a 'real' compiler ...
    (comp.compilers)
  • Re: beagle compiler
    ... Using the M4 macro processing language, a simple "compiler" (really just a ... translator) is created which can "compile" a VERY simple form of the ... Pascallanguage. ... or maybe into assembler code - as I said, ...
    (comp.sys.apple2)
  • Re: Two Click disassembly/reassembly
    ... pick a particularly limited subset of x86 assembly language and ... and then successfully write a translator. ... Given that HLLs are already portable, ... > libraries/object modules. ...
    (alt.lang.asm)