-> ID#proc-decl
#put-type puts given type on semantic stack
#proc-decl builds decl record for var on stack
#add-decl builds decl-chain
p#do-decl traverses chain on semantic stack using backwards pointers entering each var into symbol table
float a, b, c
translation: generate temporary values, propagate them to keep semantic context
Compiler Structure
scanner -> parser -> semantic analysis -> intermdeiate representation -> code generation -> assembly code