軟件測(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開始,每行加1。 使用說(shuō)明: 在提示符下輸入input.txt文件的路徑和文件名字, 運(yùn)行完成后,打開文件output.txt看結(jié)果。
標(biāo)簽: input txt c語(yǔ)言 語(yǔ)法分析器
上傳時(shí)間: 2013-12-23
上傳用戶:pompey
最高優(yōu)先級(jí)編碼器 8位相等比較器 三人表決器(三種不同的描述方式) 加法器描述 8位總線收發(fā)器:74245 (注2) 地址譯碼(for m68008) 多路選擇器(使用select語(yǔ)句) LED七段譯碼 多路選擇器(使用if-else語(yǔ)句) 雙2-4譯碼器:74139 多路選擇器(使用when-else語(yǔ)句) 二進(jìn)制到BCD碼轉(zhuǎn)換 多路選擇器 (使用case語(yǔ)句) 二進(jìn)制到格雷碼轉(zhuǎn)換 雙向總線(注2) 漢明糾錯(cuò)嗎譯碼器 三態(tài)總線(注2) 漢明糾錯(cuò)嗎編碼器 解復(fù)用器
標(biāo)簽: m68008 select 74245 for
上傳時(shí)間: 2015-04-11
上傳用戶:tianyi223
接收pop3 Public Function Retrieve(ByVal rhs As Pop3Message) As Pop3Message Dim message, response As String Dim msg As New Pop3Message msg.bytes = rhs.bytes msg.number = rhs.number message = "RETR " + rhs.number.ToString + vbCrLf write(message) response = Respond() If response.Substring(0, 3) <> "+OK" Then Throw New Pop3Exception(response) End If MsgBox(msg) msg.retrieved = True While (1 = 1) response = Respond() If response = "." + vbCrLf Then Exit While else msg.message += response End If End While Return msg End Function
標(biāo)簽: Pop3Message Function Retrieve response
上傳時(shí)間: 2013-12-28
上傳用戶:fnhhs
詞法分析器的構(gòu)造方法,詞法分析器能夠識(shí)別一些關(guān)鍵字(如if,else等)詞法分析器能夠識(shí)別一些運(yùn)算符(如+,-,*,/等)詞法分析器能夠識(shí)別標(biāo)識(shí)符
標(biāo)簽: 分析器
上傳時(shí)間: 2015-05-19
上傳用戶:咔樂(lè)塢
Frequency Scale Conversion From f To f Scale frq2mel mel2frq mel The mel scale is based on the human perception of sinewave pitch. frq2erb erb2frq erb The erb scale is based on the equivalent rectangular bandwidths of the human ear. frq2midi midi2frq midi The midi standard specifies a numbering of semitones with middle C being 60. They can use the normal equal tempered scale or else the pythagorean scale of just intonation. They will in addition output note names in a character format.
標(biāo)簽: Scale Conversion Frequency mel
上傳時(shí)間: 2015-06-07
上傳用戶:
在本編譯程序中,源語(yǔ)言為PL/0語(yǔ)言,目標(biāo)語(yǔ)言為假想棧式計(jì)算機(jī)的匯編語(yǔ)言.PL/0語(yǔ)言是Pascal語(yǔ)言的一個(gè)子集,PL/0的編譯程序包括了對(duì)PL/0語(yǔ)言源程序進(jìn)行分析處理、編譯生成類PCODE代碼,并在虛擬機(jī)上解釋運(yùn)行生成的類PCODE代碼的功能。 PL/0語(yǔ)言編譯程序采用以語(yǔ)法分析為核心、一遍掃描的編譯方法。詞法分析和代碼生成作為獨(dú)立的子程序供語(yǔ)法分析程序調(diào)用。語(yǔ)法分析的同時(shí),提供了出錯(cuò)報(bào)告功能。在源程序沒(méi)有錯(cuò)誤編譯通過(guò)的情況下,調(diào)用類PCODE解釋程序解釋執(zhí)行生成的類PCODE代碼。 該軟件為PL/0語(yǔ)言編譯程序,所實(shí)現(xiàn)的擴(kuò)充功能如下: 1.增加單詞:保留字 else,F(xiàn)OR,TO, DOWNTO 2.增加運(yùn)算 +=,-=,++,-- 3.不等號(hào)# 改為 <> 4.增加條件語(yǔ)句的else子句 5.擴(kuò)充語(yǔ)句: ①FOR <變量>:=<表達(dá)式> TO <表達(dá)式> DO <語(yǔ)句> ②FOR <變量>:=<表達(dá)式> DOWNTO<表達(dá)式> DO <語(yǔ)句> 其中,語(yǔ)句①的循環(huán)變量的步長(zhǎng)為1, 語(yǔ)句②的循環(huán)變量的步長(zhǎng)為-1。 概述 源文件: *.plo 目標(biāo)文件: *.COD 實(shí)現(xiàn)平臺(tái):C++ Builder6.0
上傳時(shí)間: 2015-06-22
上傳用戶:hanli8870
1. PL/0 語(yǔ)言介紹 ●PL/0 程序設(shè)計(jì)語(yǔ)言是一個(gè)較簡(jiǎn)單的語(yǔ)言,它以賦值語(yǔ)句為基礎(chǔ),構(gòu)造概念有順序、條件和重復(fù)(循環(huán))三種。PL/0 有子程序概念,包括過(guò)程定義(可以嵌套)與調(diào)用且有局部變量說(shuō)明。PL/0語(yǔ)言編譯程序采用以語(yǔ)法分析為核心、一遍掃描的編譯方法。詞法分析和代碼生成作為獨(dú)立的子程序供語(yǔ)法分析程序調(diào)用。語(yǔ)法分析的同時(shí),提供了出錯(cuò)報(bào)告和出錯(cuò)恢復(fù)的功能。在源程序沒(méi)有錯(cuò)誤編譯通過(guò)的情況下,調(diào)用類PCODE解釋程序解釋執(zhí)行生成的類PCODE代碼。 ●保留字(關(guān)鍵字):所謂保留字是指在Pascal語(yǔ)言中具有特定的含義。標(biāo)準(zhǔn)Pascal語(yǔ)言中的保留字一共有35個(gè),Turbo Pascal語(yǔ)言一共有51個(gè)。下面是Pascal語(yǔ)言的保留字:AND,ARRAY,BEGIN,CASE,CONST,DIV,DO,DOWNTO,else,END,F(xiàn)ILE,F(xiàn)OR,F(xiàn)UNTION,GOTO,IF,IN,LABEL,MOD,NIL,NOT,OF,OR,PACKED,PROCEDURE,PROGRAM,RECORD,REPEAT,SET,THEN,TO,TYPE,UNTIL,VAR,WHILE,WITH,EXPORTS,SHR,STRING,ASM,OBJECT,UNIT,CONSTRUCTOR,IMPLEMENTATION,DESTRUCTOR,USES,INHERITED,INLINE,INTERFACE,LIBRARY,XOR,SHL
標(biāo)簽: PL 語(yǔ)言 程序設(shè)計(jì)語(yǔ)言
上傳時(shí)間: 2015-07-17
上傳用戶:zm7516678
軟件工程方法Prefactoring Prefactoring, in essence, is the art of applying the insights gleaned from previous experience (whether yours or someone else s) when developing software to new projects. Doing so will likely save you from making costly design changes midstream--and maybe even save your job!
標(biāo)簽: Prefactoring the applying insights
上傳時(shí)間: 2013-12-22
上傳用戶:wangchong
The project Adventure is a simple text-based adventure game. The game, as given, involves the hero trying to find his way from a deep dark forest to home and his true love. There s very little else the player can do apart from moving from place to place. It s not really very interesting. This project can be of use beyond the given, rather boring forest adventure though. You can use it as a basis for developing your own adventure game with different, more interesting commands, areas, items, people and so on. The package ope.adventure contains classes to describe the game world.
標(biāo)簽: game text-based The Adventure
上傳時(shí)間: 2014-01-15
上傳用戶:cursor
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1