Can the translator work without an interpreter or compiler and why?

    2 answers 2

    If you stick to the most common definitions of the translator, interpreter and compiler, then yes.

    Транслятор - a translator from some language to another language.
    Компилятор is a translator into a certain low-level language, into a form to be executed. For example in machine code
    Интерпретатор is a piece that executes a program immediately. For example, on some virtual machine, and a virtual machine already on the fly compiles into machine code.

    That is, the thing that translates our program, say from Pascal to javascript, is a translator, but not a compiler. Unless of course our machine is not designed to execute javascript right away.

    In general, all these three concepts in practice are very interrelated and intertwined.

      Yes, it can work.

      A translator is a technical tool that performs the broadcast of a program. That is, translates the text of the program from one language to another, no more.

      The compiler is the same translator, only translates the code from a high level language to a low level language. Since the compiler is a translator, the first part of the question does not make sense.

      The interpreter executes the program code, it is not needed for translation.