軟件測試:一個編譯器測試軟件,支持下列C語言運算符:+ - * / % ^(乘方) 負 (int) (double) "字符串" [](數組) > < == >= <= != && ! ++ -- = += -= *= /= %= ^=,支持下列關鍵字:void int double string if else for while do goto break continue return,支持下列數據類型:int double string int[] double[] string[],支持下列系統函數:int max(int,int),double max(double,double),int[] newint(int),double[] newdouble(int),string[] newstring(int),void delete(int[]),void delete(double[]),void delete(string[]),支持任意用戶定義函數,支持函數重載。不支持全局變量。如果發現錯誤,請告訴我
上傳時間: 2013-12-15
上傳用戶:sy_jiadeyi
對c語言的簡單語法分析器 文件說明: input.txt內為輸入的源程序,包括for,while和if else控制等 output.txt內為輸出的二元單詞序列 k.txt為關鍵字表 l.txt為運算符和界符表 i.txt為該輸入的源程序的標志符 c.txt為常數表 個別表需要序列號,這時各表的序列號默認為從1開始,每行加1。 使用說明: 在提示符下輸入input.txt文件的路徑和文件名字, 運行完成后,打開文件output.txt看結果。
上傳時間: 2013-12-23
上傳用戶:pompey
ARM下 Implement matrix multiplication of 2 square matrices, with data read from an input file and printed both to the console and to an output file. • Assume a file with correct data (no garbage, characters, etc.). • you must check and provide appropriate execution for 2 extra cases, namely when the matrix size given is either “0” , or when the size is greater than the maximum handled of “5” . In these 2 cases you must implement the following behaviour: o If size = 0, then print a message “Size = 0 is unacceptable” and continue by reading the next size for the next 2 matrices (if not end of file). o If size >5, then print two messages: “Size is too big - unacceptable”. Then read and discard the next (size2 ) integers and continue by reading the next size for the next 2 matrices (if not end of file).
標簽: multiplication Implement matrices matrix
上傳時間: 2014-08-30
上傳用戶:dsgkjgkjg
詞法分析器的構造方法,詞法分析器能夠識別一些關鍵字(如if,else等)詞法分析器能夠識別一些運算符(如+,-,*,/等)詞法分析器能夠識別標識符
標簽: 分析器
上傳時間: 2015-05-19
上傳用戶:咔樂塢
編譯原理的課程設計,if-else條件語句的翻譯,包括語法分析和詞法分析。
標簽: 編譯原理
上傳時間: 2015-11-13
上傳用戶:牧羊人8920
一款基于J2EE輕量級架構的社區系統,具有如下特點: 表示層:基于Apache Tapestry組件化頁面技術,對客戶界面進行模塊設計。由于頁面模板中只有簡單的類似if-else和for 循環邏輯,并且所有標簽都是標準的HTML標簽,因此頁面可以放在任何所見所得的HTML編輯器中進行很輕松的編輯、美化。當然,Tapestry只是整個系統的表現部分,如果需要,此部分也可由其它技術實現,如JSP,Velocity等。 權限系統:在客戶界面與業務核心層間,存在一套完整的權限系統。每個用戶在系統中都有自己的權限,這些權限細致限定了該用戶可以使用哪些服務或者可以訪問哪些業務對象。 過濾器系統:此系統由一系列過濾器組成,對表示層要顯示的社區內容執行過濾。 社區核心層:這里完成幾乎所有的業務邏輯。 后臺數據庫系統:存儲社區各項數據。數據層服務由Hibernate提供數據連接。 模塊化、可配置、伸縮性強:您可廣泛程度上的定義多數社區子系統:如用戶、組、權限系統、過濾器、攔截器、等級積分算法、社區屬性(如體力值、魅力值)等。
上傳時間: 2016-04-08
上傳用戶:lxm
how to add arrays * Use of const (constant) values. * Creation of vectors. * Passing vectors as function arguments. * Reading from files of unknown size (monitoring istream status). * Repetitive structures (while and for loops). * The increment operators (++). * Selection structures (if-else statements). * Use of the .size, .empty, .begin, .insert, .erase, .resize, .clear and .swap vector class member functions.
標簽: Creation constant Passing vectors
上傳時間: 2017-04-25
上傳用戶:1079836864
實現火星車,全部由java寫成,沒有一個if-else,加上測試文件
上傳時間: 2014-01-06
上傳用戶:xiaoxiang
此題目是通過鍵盤來實現密碼輸入是否正確,正確的時候數碼管亮,否則發出報警聲。 判斷是按鍵還是干擾是非常有用的,它體現了一個系統的抗干擾能力。高低電平在瞬間的變換是很正常的,如果沒有這條語句,系統很容易出錯。 其中2秒是由定時器0來完成的。 在程序的定時器中斷中,用switch代替了if else結構,使得程序的可讀性大大增強。 TH0 = (65536-50000) / 256 TL0 = (65536-50000) 256 使得TH0 = 3CH, TL0 = B0H,由于該單片機的晶振為12MHz 因此定時時間就為0.05ms.在定時器中斷服務程序中用FLASH計數,當計數達到40時正好是2秒。
上傳時間: 2014-01-21
上傳用戶:caozhizhi
調用方法簡單,支持if else include之類的標簽,可以包含擴展函數,沒有引入外部文件,減少了io操作,比smarttemplate快了平均2-3毫秒,單純加載模版文件,不設置任何變量lightemplate平均0.3毫秒左右,smarttemplate至少要1毫秒。
標簽:
上傳時間: 2014-01-10
上傳用戶:zm7516678