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

正文內(nèi)容

編譯原理課程設(shè)計報告(編輯修改稿)

2024-08-30 06:26 本頁面
 

【文章內(nèi)容簡介】 (( ) == 0) { code = (1)。 } if (.equals(code)) { break。 } start = (0)。 if ((start = 39。A39。 amp。amp。 start = 39。Z39。) || (start = 39。a39。 amp。amp。 start = 39。z39。)) { ch = (0)。 while ((ch = 39。a39。 amp。amp。 ch = 39。z39。) || (ch = 39。A39。 amp。amp。 ch = 39。Z39。) || (ch)) { i = i + 1。 if (i = ()) { break。 } ch = (i)。 } word = (0, i)。 // 截取字符串 // 判斷當(dāng)前單詞在哪個表中 if ((word)) { token = token + + word + , + Keyword + , + (word) + 。 } else if ((word)) { token = token + + word + , + idSign + , + (word) + 。 } else { (word, 0 + (() + 1))。 token = token + + word + , + idSign + , + (word) + 。 } } else if ((start)) { int pointerTimes = 0。 ch = (0)。 while ((ch) || ((ch == 39。.39。) amp。amp。 pointerTimes == 0)) { if (ch == 39。.39。) { pointerTimes++。 } i = i + 1。 if (i = ()) { break。 } ch = (i)。 } word = (0, i)。 if ((word)) { token = token + + word + , + constant + , + (word) + 。 } else { (word, 0 + (() + 1))。 token = token + + word + , + constant + , + (word) + 。 } } else { start = (0)。 if (start == 39。39。 || start == 39。39。 || start == 39。=39。 || start == 39。:39。) { ch = (1)。 String signAdd = + start + ch。 if ((signAdd)) { i = i + 2。 token = token + + signAdd + , + border + , + (signAdd) + 。 } else { i = i + 1。 token = token + + start + , + border + , + ( + start) + 。 } } else { i = i + 1。 token = token + + start + , + border + , + ( + start) + 。 } } code = (i)。 token = token + 。 } } /** * 讀單詞,給語法分析提供使用。 * * @param code * 待識別的程序。 * @return 當(dāng)前單詞。 */ public String readWord() { String word = 。 // 當(dāng)前單詞。 char start。 // 開始字符。 char ch。 // 當(dāng)前字符。 int i = 0。 while (( ) == 0) { code = (1)。 } if (.equals(code)) { return 。 } start = (0)。 if ((start = 39。A39。 amp。amp。 start = 39。Z39。) || (start = 39。a39。 amp。amp。 start = 39。z39。)) { ch = (0)。 while ((ch = 39。a39。 amp。amp。 ch = 39。z39。) || (ch = 39。A39。 amp。amp。 ch = 39。Z39。) || (ch)) { i = i + 1。 if (i = ()) { break。 } ch = (i)。 } word = (0, i)。 } else if ((start)) { int pointerTimes = 0。 ch = (0)。 while ((ch) || ((ch == 39。.39。) amp。amp。 pointerTimes == 0)) { if (ch == 39。.39。) { pointerTimes++。 } i = i + 1。 if (i = ()) { break。 } ch = (i)。 } word = (0, i)。 } else { if (start == 39。39。 || start == 39。39。 || start == 39。=39。 || start == 39。:39。) { ch = (1)。 String signAdd = + start + ch。 if ((signAdd)) { i = i + 2。 word = signAdd。 } else { i = i + 1。 word = + start。 } } else { i = i + 1。 word = + start。 } } code = (i)。 return word。 } public String read() { String current = readWord()。 String currents = null。 if ((current)) { currents = current + | + p。 } else if ((current)) { currents = current + | + i。 } else if ((current)) { currents = current + | + k。 } else if ((current)) { currents = current + | + c。 } else currents = current + | + err。 return currents。 } public ArrayListString readWord(String code) { ArrayListString result = new ArrayList()。 = code。 while (!.equals()) { (readWord())。 } return result。 } public ArrayListString fhq() { ArrayListString ret = new ArrayList()。 String now = null, past = null。 now = readWord()。 while (!..equals(now)) { if (:=.equals(now)) { past = ()。 (past)。 ( + now)。 now = readWord()。 } else { ( + now)。 now = readWord()。 } } return ret。 } /** * @return the code */ public String getCode() { return code。 } /** * @param code * the code to set */ public void setCode(String code) { = code。 } /** * @return the token */ public String getToken() { return token。 }}package 。/** * 遞歸下降語法分析。 * * @author Xiao, Hui。 Liu, Xinwei * */public class RecursiveWay { String current。 String kind。 String word。 String single = 。 static int tures = 0。// 說明多少個錯誤。 int type2 = 0。// 類型說明,如果是整形為1,實數(shù)型為2,字符型為3 WordScanner scanner = new WordScanner()。 // 拆開詞函數(shù) public String char2() { char ch = (0)。 word = (1)。 return + ch。 } public void read() { String currents。 currents = ()。 String[] splits = (\\|)。 current = splits[0]。 kind = splits[1]。 } // 1 程序入口,1 程序program program 2 標(biāo)識符ID3 分程序deputyProgram public void program() { read()。 if (!program.equals(current)) { (關(guān)鍵字錯誤 + : + current + + 應(yīng)該為program)。 tures++。 } read()。 ID()。 deputyprogram()。 } // 2判斷是否是符合標(biāo)識符定義,a型,abc型,abc123型 public void ID() { if (!i.equals(kind)) { (標(biāo)識符錯誤 + : + current)。 } read()。 } // 3 3 分程序deputyProgram 10 變量說明VD4 復(fù)合語句poundStatement private void deputyprogram() { VD()。 poundStatement()。 } // 4復(fù)合語句的判斷,主體部分**,里面是主體架構(gòu),從begin 到最后的end. public void poundStatement() { if (!begin.equals(current)) { (關(guān)鍵字錯誤 + : + current + + 應(yīng)該為begin)。 tures++。 } read()。 while (!end.equals(current)) { if (while.equals(current)) { whiles()。 } else if (if.equals(current)) { ifs()。 } else statementTable()。 } read()。 if (!..equals(current)) { (結(jié)尾符號錯誤 + : + current + + 應(yīng)該為.)。 tures++。 read()。 } } // 5號 5 標(biāo)識符表IDTable 2 標(biāo)識符ID {
點擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1