P8
姓名:田昊东 学号:211275022
编译原理作业 p 8¶
6.6.1
^690668
//产生式
S -> for(s1;B;S2)S3
//语义规则
B.true=newlable()
B.false=S.next
S1.next=newlable()
S2.next=S1.next
S3.next=newlable()
S.code=S1.code
||lable(S1.next)||B.code
||lable(B.true)||s3.code
||lable(s3.next)||s2.code
||gen('goto',s1.next)