freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

編譯技術(shù)課程設(shè)計報告-詞法分析、語法分析、中間代碼生成-閱讀頁

2025-06-07 13:32本頁面
  

【正文】 39。 break。{39。 words[j+1] = 39。 flag = 20。 } case39。:{ words[j] = ch。\039。 break。:39。 words[j+1] = 39。 flag = 22。 } case39。:{ words[j] = ch。\039。 break。39。 words[j+1] = 39。 flag = 0。 } case39。://空格 { words[j] =39。 words[j+1] = 39。 flag = 24。 } //case39。:{ //words[j] = 39。 //words[j+1] = 39。 //flag = 0。 //} default:{ flag = 1。 } } return flag。 void E1()。 void T()。 void T2()。 void F1()。 void E() { coutETE39。endl。 E2()。+Tendl。 T()。Tendl。 T()。 } void E2() { if(flags[temp]==9||flags[temp]==12)//如果是加或減 { coutE39。E39。39。 E1()。 } 第 25 頁 else if (flags[temp]!=0||flags[temp]!=17)//如果是非 或非) { coutE39。ε endl。 } else is_right=0。39。 F()。 } void T1() { if(flags[temp]==10) //乘號 { coutT39。 temp++。 } else if(flags[temp]==13) //除號 { coutT39。 temp++。 } else is_right=0。39。T39。endl。 T2()。39。 return 。 } void F() { coutFPF39。 P()。 } void F1() { if(flags[temp]==11) //乘方 { coutF39。 temp++。 } else if (flags[temp]!=0amp。flags[temp]!=17amp。flags[temp]!=9amp。flags[temp]!=12amp。flags[temp]!=10amp。flags[temp]!=13)//非 非)非 +非 非 *非 / { coutF39。 is_right=0。 temp++。 temp++。 if(flags[temp]==17) //) { 第 27 頁 coutP(E)endl。 } else is_right=0。 } //語義分析以及中間代碼生成 int YE()。 int YE2(int a)。 int YT1(int a)。 int YF()。 int YP()。 int num=0。 string strn。 int newTemp() { num++。 stringstream stream。 streamstrn。 t[num1]=temp。//把字符串 s連接到當(dāng)前字符串的結(jié)尾 //t[num1]=strcat(Temp,strn)。 return num1。 } int YE() 第 28 頁 { int rt,t1。 t1=rt。 return rt。 t1=a。 int tt=v+1。 int t2=YT()。 siyuan(tt,t1,t2,rr)。 return rt。 int tt=v+1。 int t2=YT()。 siyuan(tt,t1,t2,rr)。 return rt。 } int YE2(int a) { int rt,t1。 if(flags[temp]==9||flags[temp]==12)//+或 { rt=YE1(t1)。 第 29 頁 rt=YE2(t1)。 } else if (flags[temp]!=0||flags[temp]!=17) { return t1。 } int YT() { int rt,t1。 t1=rt。 return rt。 t1=a。 v++。 int t2=YF()。 siyuan(tt,t1,t2,rr)。 return rt。 int tt=v+1。 int t2=YF()。 siyuan(tt,t1,t2,rr)。 return rt。 } int YT2(int a) { int rt,t。 if(flags[temp]==10||flags[temp]==13)//乘或除 { rt=YT1(t)。 rt=YT2(t)。 } else return t。 rt=YP()。 rt=YF1(t1)。 } int YF1(int a) //乘方 { int rt,t1。 if(flags[temp]==11) { temp++。 v++。 int rr=newTemp()。 rt=rr。 } else return t1。 第 31 頁 if(flags[temp]==6||flags[temp]==7)//標(biāo)識符或常數(shù) { v++。 temp++。 } else if(flags[temp]==17) //( { v++。 rt=YE()。 temp++。 } else return ww。 } void main() { printf( 單詞號對應(yīng) 的種別編碼 \n)。 printf((while,1) (if,2) (else,3) (switch,4) (case,5)\n)。 printf((標(biāo)括識符 ,6) (常數(shù) ,7) (=,8) (+,9) (++,9)\n)。 printf((+=,9) (*,10 ) (**,11) (,12) (/,13)\n)。 printf((/=,13) (,14) (=,14) (,14) (=,14)\n)。 printf((!=,14) (。 printf(\n)。 printf(\n)。 printf(\n)。 int i=0。 第 32 頁 do { ch =getchar()。 }while(ch != 39。)。 printf(\n)。 cout(值 , 種別 )endl。//詞法分析 if (flag == 7) { cout(number , flag)endl。 stringstream stream。 streamt[num]。 num++。 } else { cout(words , flag)endl。 t[num]=words。 } } }while (flag != 0)。 is_right=1。 cout語法分析: endl。 if((flags[temp]==0)amp。is_right) { printf(\n)。 temp=0。 cout四元式序列: endl。 } else cout分析失敗 ! endl。 }
點擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1