1.2.2 stages of compilation Flashcards
1
Q
what is lexical analysis
A
white spaces are removed
keywords / variables are replaced with tokens
then stored in a table
2
Q
what is syntax analysis
A
tokens are then analysed against the rules any that break the rules are flagged for syntax
3
Q
whats code generation and optimisation
A
generating code and removing irrelevent parts