Translators Flashcards
1
Q
3 types of translators
A
Assembler
Compiler
Interpreter
2
Q
What code does the assembler use
A
Assembly code- machine Code
Mnemonics
3
Q
What translator does python use?
A
Interpreter- it will identify errors and will display where the error is
4
Q
Compiler- what code?
A
From all the source code->machine Code
5
Q
What does lexical Analysis do?
Step 1
A
Removes comments
Removes white spaces
Stream of tokens gets passed on to syntax analysis
6
Q
What does syntax analysis do?
Step 2
A
Analyses the code from the lexical analysis
7
Q
Semantic analysis- what does it do?
Step 3
A
Looks out for errors. For example grammatical errors
8
Q
What does code generation do
Step 4
A
Produces the machine code
9
Q
Machine code
A
Binary