【文章內容簡介】
ts: a: (line 13) variable , type int b: (line 13) variable , type int ? Exiting global scope. Contents: main: (line 3) function test: (line 13) function Global Main Function Scope Main Local Scope main Empty Int c String s 實驗三要求 ?實驗要求:完成語義分析,結果同sample一致,擴展不做要求。 ?上交日期:三周以后即 12:00上載到 piler/soft ?提交方法:同以前一樣。 ?歡迎同學用不同的方法實現(xiàn)相同的功能。 –如自己設計符號表、類的實現(xiàn)等。 實驗四 代碼生成 ? TAC指令 ? Variable declarations ? Assignment ? Arithmetic ? Relational/equality/logical ? Labels and Branches ? Function/method calls ? Function definitions ? Memory references ? Array indexing ? Object fields method dispatch ? Miscellaneous ? Data specification 簡單的例子 ? void main (){ ? P