軟件測試:一個編譯器測試軟件,支持下列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
最高優先級編碼器 8位相等比較器 三人表決器(三種不同的描述方式) 加法器描述 8位總線收發器:74245 (注2) 地址譯碼(for m68008) 多路選擇器(使用select語句) LED七段譯碼 多路選擇器(使用if-ELSE語句) 雙2-4譯碼器:74139 多路選擇器(使用when-ELSE語句) 二進制到BCD碼轉換 多路選擇器 (使用case語句) 二進制到格雷碼轉換 雙向總線(注2) 漢明糾錯嗎譯碼器 三態總線(注2) 漢明糾錯嗎編碼器 解復用器
上傳時間: 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
標簽: Pop3Message Function Retrieve response
上傳時間: 2013-12-28
上傳用戶:fnhhs
詞法分析器的構造方法,詞法分析器能夠識別一些關鍵字(如if,ELSE等)詞法分析器能夠識別一些運算符(如+,-,*,/等)詞法分析器能夠識別標識符
標簽: 分析器
上傳時間: 2015-05-19
上傳用戶:咔樂塢
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.
標簽: Scale Conversion Frequency mel
上傳時間: 2015-06-07
上傳用戶:
在本編譯程序中,源語言為PL/0語言,目標語言為假想棧式計算機的匯編語言.PL/0語言是Pascal語言的一個子集,PL/0的編譯程序包括了對PL/0語言源程序進行分析處理、編譯生成類PCODE代碼,并在虛擬機上解釋運行生成的類PCODE代碼的功能。 PL/0語言編譯程序采用以語法分析為核心、一遍掃描的編譯方法。詞法分析和代碼生成作為獨立的子程序供語法分析程序調用。語法分析的同時,提供了出錯報告功能。在源程序沒有錯誤編譯通過的情況下,調用類PCODE解釋程序解釋執行生成的類PCODE代碼。 該軟件為PL/0語言編譯程序,所實現的擴充功能如下: 1.增加單詞:保留字 ELSE,FOR,TO, DOWNTO 2.增加運算 +=,-=,++,-- 3.不等號# 改為 <> 4.增加條件語句的ELSE子句 5.擴充語句: ①FOR <變量>:=<表達式> TO <表達式> DO <語句> ②FOR <變量>:=<表達式> DOWNTO<表達式> DO <語句> 其中,語句①的循環變量的步長為1, 語句②的循環變量的步長為-1。 概述 源文件: *.plo 目標文件: *.COD 實現平臺:C++ Builder6.0
上傳時間: 2015-06-22
上傳用戶:hanli8870
1. PL/0 語言介紹 ●PL/0 程序設計語言是一個較簡單的語言,它以賦值語句為基礎,構造概念有順序、條件和重復(循環)三種。PL/0 有子程序概念,包括過程定義(可以嵌套)與調用且有局部變量說明。PL/0語言編譯程序采用以語法分析為核心、一遍掃描的編譯方法。詞法分析和代碼生成作為獨立的子程序供語法分析程序調用。語法分析的同時,提供了出錯報告和出錯恢復的功能。在源程序沒有錯誤編譯通過的情況下,調用類PCODE解釋程序解釋執行生成的類PCODE代碼。 ●保留字(關鍵字):所謂保留字是指在Pascal語言中具有特定的含義。標準Pascal語言中的保留字一共有35個,Turbo Pascal語言一共有51個。下面是Pascal語言的保留字:AND,ARRAY,BEGIN,CASE,CONST,DIV,DO,DOWNTO,ELSE,END,FILE,FOR,FUNTION,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
上傳時間: 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!
標簽: Prefactoring the applying insights
上傳時間: 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.
標簽: game text-based The Adventure
上傳時間: 2014-01-15
上傳用戶:cursor