Open ccckmit opened 2 years ago
// 需要在前面enum加上 Do,後面的compiler 的 p加上 do
else if (tk == Do){
next();
a = e + 1;
stmt();
if (tk == While) next(); else { printf("%d: open while expected\n", line); exit(-1); }
if (tk == '(') next(); else { printf("%d: open paren expected\n", line); exit(-1); }
expr(Assign);
if (tk == ')') next(); else { printf("%d: close paren expected\n", line); exit(-1); }
if (tk == ';') next(); else { printf("%d: close ; expected\n", line); exit(-1); }
*++e = BNZ; *++e = (int)a; // BNZ是代表不是 0 的時候跳,這裡是跳入迴圈
}
110910511 蘇郁晴 https://github.com/yucing/sp110b/wiki/e2.md
110910518 黃紹安 https://github.com/shaoan901226/sp/wiki/HOMEWORK2
110910501 王澤瑋 https://github.com/nakirifumiya/sp110b/wiki/hw2
110910506林庭光 https://github.com/Lin610313/sp110b/wiki/work2.md
110910515 陳文吉 https://github.com/RyanChen-01/sp110b/wiki/hw2.md
110910507王證傑 https://github.com/stayjay/sp110b/wiki/homework2
資工三 110810509 蘇乾羽 https://github.com/qweasd049564/sp110b/blob/master/hw/hw2.md
資工二 110911542 邵南翔 https://github.com/zraiz/sp110b/blob/master/Homework/02/Homeowrk02.md
資工二 110910529 劉宸羽 https://github.com/yumao57/sp110b/wiki/%E7%BF%92%E9%A1%8C%E4%BA%8C
資工二 110911543 何文旺 https://github.com/WForU/sp110b/wiki/HW2.md
資工二 110910539 鄭智陽 https://github.com/OohelloworldoO/sp110b/wiki/exercise-2
110910563陳威宇 https://github.com/daniel74859641/-/wiki
110910504趙唯安 https://github.com/wei-annn/sp110b/wiki/hw2.md
參考: https://github.com/ccc-c/c6/wiki/
補充: