Type Checking: CS416 Compiler Design 1
Type Checking: CS416 Compiler Design 1
D → D;D
D → id:T { addtype(id.entry,T.type) }
T → char { T.type=char }
T → int { T.type=int }
T → real { T.type=real }
T → ↑T1 { T.type=pointer(T1.type) }
T → array[intnum] of T1 { T.type=array(1..intnum.val,T1.type) }
inttoreal y,,t1
real+ t1,x,t2