Stages of Compilation Flashcards
1
Q
What are the three stages of Compilation?
A
- Lexical Analysis
- Syntactic Analysis
- Code Generation and Optimisation
2
Q
What is a Lexicon?
A
A Lexicon is a collection of key terms that the compiler is designed to understand.
3
Q
What is a Lexeme
A
This is the smallest unit of language that cannot be broken down further without losing meaning.
4
Q
During Lexical analysis what is the compiler trying to identify and what is it?
A
Identifiers - names for procedures, variables and constants
5
Q
What is a token
A
A token is when a lexeme is converted into a fixed length binary number