pl0的編譯器,增加了if else語(yǔ)言支持,和數(shù)組,和repeat語(yǔ)言支持
上傳時(shí)間: 2015-02-21
上傳用戶:小鵬
軟件測(cè)試:一個(gè)編譯器測(cè)試軟件,支持下列C語(yǔ)言運(yùn)算符:+ - * / % ^(乘方) 負(fù) (int) (double) "字符串" [](數(shù)組) > < == >= <= != && ! ++ -- = += -= *= /= %= ^=,支持下列關(guān)鍵字:void int double string if else for while do goto break continue return,支持下列數(shù)據(jù)類型:int double string int[] double[] string[],支持下列系統(tǒng)函數(shù):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[]),支持任意用戶定義函數(shù),支持函數(shù)重載。不支持全局變量。如果發(fā)現(xiàn)錯(cuò)誤,請(qǐng)告訴我
標(biāo)簽: 軟件測(cè)試 編譯器 測(cè)試軟件
上傳時(shí)間: 2013-12-15
上傳用戶:sy_jiadeyi
對(duì)c語(yǔ)言的簡(jiǎn)單語(yǔ)法分析器 文件說(shuō)明: input.txt內(nèi)為輸入的源程序,包括for,while和if else控制等 output.txt內(nèi)為輸出的二元單詞序列 k.txt為關(guān)鍵字表 l.txt為運(yùn)算符和界符表 i.txt為該輸入的源程序的標(biāo)志符 c.txt為常數(shù)表 個(gè)別表需要序列號(hào),這時(shí)各表的序列號(hào)默認(rèn)為從1開(kāi)始,每行加1。 使用說(shuō)明: 在提示符下輸入input.txt文件的路徑和文件名字, 運(yùn)行完成后,打開(kāi)文件output.txt看結(jié)果。
標(biāo)簽: input txt c語(yǔ)言 語(yǔ)法分析器
上傳時(shí)間: 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).
標(biāo)簽: multiplication Implement matrices matrix
上傳時(shí)間: 2014-08-30
上傳用戶:dsgkjgkjg
詞法分析器的構(gòu)造方法,詞法分析器能夠識(shí)別一些關(guān)鍵字(如if,else等)詞法分析器能夠識(shí)別一些運(yùn)算符(如+,-,*,/等)詞法分析器能夠識(shí)別標(biāo)識(shí)符
標(biāo)簽: 分析器
上傳時(shí)間: 2015-05-19
上傳用戶:咔樂(lè)塢
編譯原理的課程設(shè)計(jì),if-else條件語(yǔ)句的翻譯,包括語(yǔ)法分析和詞法分析。
標(biāo)簽: 編譯原理
上傳時(shí)間: 2015-11-13
上傳用戶:牧羊人8920
一款基于J2EE輕量級(jí)架構(gòu)的社區(qū)系統(tǒng),具有如下特點(diǎn): 表示層:基于Apache Tapestry組件化頁(yè)面技術(shù),對(duì)客戶界面進(jìn)行模塊設(shè)計(jì)。由于頁(yè)面模板中只有簡(jiǎn)單的類似if-else和for 循環(huán)邏輯,并且所有標(biāo)簽都是標(biāo)準(zhǔn)的HTML標(biāo)簽,因此頁(yè)面可以放在任何所見(jiàn)所得的HTML編輯器中進(jìn)行很輕松的編輯、美化。當(dāng)然,Tapestry只是整個(gè)系統(tǒng)的表現(xiàn)部分,如果需要,此部分也可由其它技術(shù)實(shí)現(xiàn),如JSP,Velocity等。 權(quán)限系統(tǒng):在客戶界面與業(yè)務(wù)核心層間,存在一套完整的權(quán)限系統(tǒng)。每個(gè)用戶在系統(tǒng)中都有自己的權(quán)限,這些權(quán)限細(xì)致限定了該用戶可以使用哪些服務(wù)或者可以訪問(wèn)哪些業(yè)務(wù)對(duì)象。 過(guò)濾器系統(tǒng):此系統(tǒng)由一系列過(guò)濾器組成,對(duì)表示層要顯示的社區(qū)內(nèi)容執(zhí)行過(guò)濾。 社區(qū)核心層:這里完成幾乎所有的業(yè)務(wù)邏輯。 后臺(tái)數(shù)據(jù)庫(kù)系統(tǒng):存儲(chǔ)社區(qū)各項(xiàng)數(shù)據(jù)。數(shù)據(jù)層服務(wù)由Hibernate提供數(shù)據(jù)連接。 模塊化、可配置、伸縮性強(qiáng):您可廣泛程度上的定義多數(shù)社區(qū)子系統(tǒng):如用戶、組、權(quán)限系統(tǒng)、過(guò)濾器、攔截器、等級(jí)積分算法、社區(qū)屬性(如體力值、魅力值)等。
標(biāo)簽: J2EE 輕量級(jí) 架構(gòu)
上傳時(shí)間: 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.
標(biāo)簽: Creation constant Passing vectors
上傳時(shí)間: 2017-04-25
上傳用戶:1079836864
實(shí)現(xiàn)火星車,全部由java寫成,沒(méi)有一個(gè)if-else,加上測(cè)試文件
上傳時(shí)間: 2014-01-06
上傳用戶:xiaoxiang
此題目是通過(guò)鍵盤來(lái)實(shí)現(xiàn)密碼輸入是否正確,正確的時(shí)候數(shù)碼管亮,否則發(fā)出報(bào)警聲。 判斷是按鍵還是干擾是非常有用的,它體現(xiàn)了一個(gè)系統(tǒng)的抗干擾能力。高低電平在瞬間的變換是很正常的,如果沒(méi)有這條語(yǔ)句,系統(tǒng)很容易出錯(cuò)。 其中2秒是由定時(shí)器0來(lái)完成的。 在程序的定時(shí)器中斷中,用switch代替了if else結(jié)構(gòu),使得程序的可讀性大大增強(qiáng)。 TH0 = (65536-50000) / 256 TL0 = (65536-50000) 256 使得TH0 = 3CH, TL0 = B0H,由于該單片機(jī)的晶振為12MHz 因此定時(shí)時(shí)間就為0.05ms.在定時(shí)器中斷服務(wù)程序中用FLASH計(jì)數(shù),當(dāng)計(jì)數(shù)達(dá)到40時(shí)正好是2秒。
上傳時(shí)間: 2014-01-21
上傳用戶:caozhizhi
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1