Professional Documents
Culture Documents
Week 3 Lec 6 CC
Week 3 Lec 6 CC
Week 3 Lec 6 CC
Symbol Table
How to construct Symbol Table?
Two-Pass Compiler
Understanding related to
Two-Pass Compiler
errors
8
Two-pass Compiler
Two-pass Compiler
source tokens IR
scanner parser
code
errors
Modules
Scanner
Parser
13
Scanner
source tokens IR
scanner parser
code
errors
Scanner 14
Example
x = x + y
becomes
<id,x>
<id,x>
<assign,=>
<id,x> word
<op,+>
<id,y> token type
Scanner 16
Q&A