Assembler translator or transcriptor-Collection of common programming errors

To answer your question, an Assembler is a translator that converts human readable instructions into a code that is suitable for a machine to understand. All kinds of tools such as assemblers, compilers, interpreters are nothing more than translators.

A translator is a complex software that has to analyze each and every single syntax, for an example

let x = 4

This is just an example, to us humans, it means assigns the value of a variable called ‘x’ in this case, 4, the translator would convert this to an equivalent machine code like this

mov [bx], 4

As you can see from this simple example, the translator has to work out the location of where the variable ‘x’ reside in memory and to perform the instructions necessary to make it functionally equivalent to the human readable syntax. The translator has separate parts that make up a valid syntax

Suppose the wording was like this

lets x = 4

The translator would flag this as a syntax error

WOOOPS!!!

the translator has no knowledge of that word ‘lets’ so flag up a syntax error, the end result would be “Syntax error, ‘lets’ unknown!” which would be displayed to the end user, i.e. the programmer..

That is how a translator works.

As for transcriptor, thats a new one to me never heard of it.

Originally posted 2013-11-09 23:09:02.