1. 請問這次作業 的error type有哪幾種 是自己定義嗎??還是有規定哪些error要抓出來. ANS: 自己定義. I expect you to at least report "illegal statement." 2. 請問 jump opeartion中 如果沒有goto label 沒有 match到 任何的label 需要抓出來嗎? ANS: 不用,但不反對. 3. 關於C--的語法,在定義中沒有提到return, 可是在範例程式中有出現return, 那return算不算是合法的statement呢? ANS: Bugs in my sample. This is fixed. 4. 另外在範例的code有出現 R__3 = POP__S(); 與定義不符。 ANS: Another bug. This is fixed. The def of this STACK operation is updated in the slides. 5. 範例的printf("%d",R__0);也與定義中的printf("%d ",R__0);不合 ANS: Yet another bug. 6. 請問一下若發現程式中沒有main() 或 INIT()等必須的operation 是否要繼續parse下去 還是可以直接跳出 說有錯誤呢? ANS: Just report "missing statement main() or init()" and then continue parsing. 7. 請問 #define 和 #include 有強制規定放在第一行和第二行嗎? ANS: Yes.