what is translator in computer
- definition
- a translator or a programming language processor that converts a computer program from a language to another
- it takes a program written in source code and converts into machine code
- it discover and identifies errors during translation
- types of translators
- assembler: assembly (src code) β assembler (translator) β machine level language (object code)
- compiler:
- read the complete src program in high level language β if error free, convert into machine level language
- specifies errors in the src code at the end of compilation, if any
- interpreter
- convert high-level language to machine level language
- it converts line by line, then report errors with executable linesβ results β faster than compiler