链记录语句嵌套层次的数组,
即记录嵌套中每层的布尔表达式E的首地址
i
tlabeltemp10记录语句嵌套层次的数组,
即记录每层else之前的四元式地址
i
tpoi
tmark1labelmark数组指针
poi
ttemp1
labeltemp数组指针
i
tsig
0
sig
1,为赋值语句;sig
2,为布尔表达式。
程序语句LR分析表
statici
tactio
1913
02113411511111
11111111111ACC11
21111111116111
31111111117111
42113411511198
5111041111041104110411
611011111111111
711111111111111
811111112111111
91111111051131111
1021134115111141
1121134115111151
12111031111031103110311
1321134115111916
f14111711111111111511102111102110211021116111111106111111172113411511118118111011111011101110111算术表示式的LR分析表statici
tactio
116100121111114111112345611ACC1212111111311731211111131184121111113119512111111311106121111113111171101101456110110118110210245611021021911031031031036110310311011041041041046110410411111051051051051051105105112110710710710710711071071131211111131114141234561151115110610610610610611061061布尔表示式的LR分析表statici
tactio
21611011415111137811211011101101101111231111111111311110211021021021114114151111178511415111678611110419101041117114151111478811415111157891051105110511111110107110711071111111111112191011111211110311031031031111311111910ACC111141111061910106111151111081910108111
函数清单:
fvoidmai
主程序
voidreadli
e从文r