設計目的 加深對語法分析程序的任務及其工作原理的理解;掌握語法分析程序的實現方法;掌握簡單語言的狀態轉換圖表示形式極其識別程序的構造。 設計任務 編寫對簡單語言進行語法分析的詞法分析程序。并對輸入串for I=1to 20 do {x:=x+2 y:=y*(2+c) }} 進行語法分析,要求如下: 1。識別其中的關鍵字,標識符,常數,運算符和界符。2,對其中的數字注明其值和類型 3。將識別的結果填入表中并輸出。
上傳時間: 2015-03-30
上傳用戶:lili123
The code assumes a two-dimensional computational domain with TMz polarization (i.e., non-zero field Ez, Hx, and Hy). The program is currently written so that the incident field always strikes the lower-left corner of the total-field region first. (If you want a different corner, that should be a fairly simple tweak to the code, but for now you ll have to make that tweak yourself.) I have attempted to provide copious comments in the code and hope that a knowledgeable C programmer can quickly map the approach as described in the paper to what is in the program.
標簽: two-dimensional computational polarization non-zero
上傳時間: 2013-12-13
上傳用戶:cylnpy
Bochs is a highly portable open source IA-32 (x86) PC emulator written in C++, that runs on most popular platforms. It includes emulation of the Intel x86 CPU, common I/O devices, and a custom BIOS. Currently, Bochs can be compiled to emulate a 386, 486, Pentium, Pentium Pro or AMD64 CPU, including optional MMX, SSE, SSE2 and 3DNow! instructions. Bochs is capable of running most Operating Systems inside the emulation including Linux, DOS, Windows 95/98 and Windows NT/2000. Bochs was written by Kevin Lawton and is currently maintained by the Bochs project at "http://bochs.sourceforge.net".
標簽: emulator portable written highly
上傳時間: 2015-04-06
上傳用戶:FreeSky
本程序是用c++實現的多功能文本編輯器,它除了可以實現一般文本的編輯功能,還增加了保存文檔a(save), 轉為大寫m(large),改為小寫k(small),復制段j(copy),中英文轉換t(language)等功能
上傳時間: 2013-12-23
上傳用戶:wuyuying
盒維數MATLAB計算程序。%根據計盒維數原理編寫了求一維曲線分形維數的matlab程序 function D=FractalDim(y,cellmax) %求輸入一維信號的計盒分形維數 %y是一維信號 %cellmax:方格子的最大邊長,可以取2的偶數次冪次(1,2,4,8...),取大于數據長度的偶數 %D是y的計盒維數(一般情況下D>=1),D=lim(log(N(e))/log(k/e)),
標簽: FractalDim function cellmax MATLAB
上傳時間: 2015-04-23
上傳用戶:liuchee
DELPHI basicCtrl+NUM 直接將光標跳到NUM處,NUM是用Ctrl+Shift+NUM設置的標號。 NUM不能用小鍵盤。 Ctrl+Home 將光標移至文件頭。 Ctrl+End 將光標移至文件尾。 Ctrl+B Buffer List窗口。 Ctrl+I 同Tab鍵。 Ctrl+M 同Enter鍵。 Ctrl+N 同Enter鍵,但光標位置保持不變。 Ctrl+T 刪除光標右邊的一個單詞。 Ctrl+Y 刪除光標所在行。 Ctrl+Shift+↑ 光標在函數體內時,將光標快速移至當前函數聲明處。 Ctrl+Shift+↓ 光標在函數聲明行時,將光標快速移至函數定義處。 Ctrl+Shift+C 聲明一個過程或函數后,直接生成過程或函數的名稱、begin、end Ctrl+Shift+E 光標在Edit窗口和Explorer窗口間切換。 Ctrl+Shift+G 插入GUID。 Ctrl+Shift+J 彈出Delphi語句提示窗口,選擇所需語句將自動完成一條語句。 Ctrl+Shift+T 在光標行加入To-Do注釋。 Ctrl+Shift+Y 刪除光標之后至本行末尾之間的文本。 Ctrl+F3 Call Stack窗口。 Ctrl+F4 等于File菜單中的Close項。
上傳時間: 2014-11-26
上傳用戶:kr770906
本文件為用C語言實現的可實現廣義異或問題的bp神經網絡算法。該問題是對標準異或問題的推廣。在標準異或問題中,輸入X1和X2取離散量-1或+1,在廣義異或問題中,輸入(X1,X2)可以在區間[-1,+1] X [-1, +1]內任意取值,而輸出為Y=sign(x1,x2),其中sign()為符號函數,在區間[-1,+1] X [-1, +1]內隨機產生500個訓練樣本.本程序用標準BP網實現該分類問題.
上傳時間: 2015-05-03
上傳用戶:清風冷雨
本程序用C語言實現了集成神經網絡解決廣義異或問題。用神經網絡集成方法做成表決網,可克服初始權值的影響,對神經網絡分類器來說:假設有N個獨立的子網,采用絕對多數投票法,再假設每個子網以1-p的概率給出正確結果,且網絡之間的錯誤不相關,則表決系統發生錯誤的概率為 Perr = ( ) pk(1-p)N-k 當p<1/2時 Perr 隨N增大而單調遞減. 在工程化設計中,先設計并訓練數目較多的子網,然后從中選取少量最佳子網形成表決系統,可以達到任意高的泛化能力。
上傳時間: 2015-05-03
上傳用戶:kiklkook
The project KEIL_IODemo shows how to use memory allocation routines (malloc) and char I/O (printf, scanf) via a serial interface with the Keil ARM toolchain. The I/O functions are adapted for the Analog Devices ADuC7000 series using the SERIAL.C module. The example also shows the efficiency of the Keil CA ARM Compiler run-time library which is tuned for single chip systems.
標簽: KEIL_IODemo allocation routines project
上傳時間: 2013-12-08
上傳用戶:ve3344
UART I/O and Memory Allocation Example for GNU The project GNU_IODemo shows how to use memory allocation routines (malloc) and char I/O (printf, scanf) via a serial interface with the GNU toolchain. The I/O functions are adapted for the Analog Devices ADuC7000 series using the SERIAL.C module. The example also shows the efficiency of the Keil CA ARM Compiler run-time library which is tuned for single chip systems.
標簽: Allocation GNU_IODemo Example project
上傳時間: 2015-05-04
上傳用戶:Amygdala