Chapter 5:Semantic Analysis
Example .
Therefore, the translation scheme becomes
D
T L
T
int
val[top] =integer
T
real
val[top] =real
L
L,id
addtype(val[top], val[top-3])
L
id
addtype(val[top], val[top-1])
The value of T.value is used in place of L.in