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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is syntax analysis

A

tokens are then analysed against the rules any that break the rules are flagged for syntax

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

whats code generation and optimisation

A

generating code and removing irrelevent parts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly