詞法分析器制作與應用 設計思想 (1)程序主體結構部分: 說明部分 %% 規則部分 %% 輔助程序部分 (2)主體結構的說明 在這里說明部分告訴我們使用的LETTER,DIGIT, IDENT(標識符,通常定義為字母開頭的字母數字串)和STR(字符串常量,通常定義為雙引號括起來的一串字符)是什么意思.這部分也可以包含一些初始化代碼.例如用#include來使用標準的頭文件和前向說明(forward ,references).這些代碼應該再標記"%{"和"%}"之間 規則部分> 可以包括任何你想用來分析的代碼 我們這里包括了忽略所有注釋中字符的功能,傳送ID名稱和字符串常量內容到主調函數和main函數的功能. (3)實現原理 程序中先判斷這個句語句中每個單元為關鍵字、常數、運算符、界符,對與不同的單詞符號給出不同編碼形式的編碼,用以區分之。 PL/0語言的EBNF表示 <常量定義>::=<標識符>=<無符號整數> <標識符>::=<字母>={<字母>|<數字>} <加法運算符>::=+|- <乘法運算符>::=*|/ <關系運算符>::==|#|<|<=|>|>= <字母>::=a|b|…|X|Y|Z <數字>::=0|1|2|…|8|9
上傳時間: 2015-11-04
上傳用戶:zhengzg
CORDIC (Coordinate Rotation Digital Computer) is a method for computing elementary functions using minimal hardware such as shifts, adds/subs and compares. CORDIC works by rotating the coordinate system through constant angles until the angle is reduces to zero. The angle offsets are selected such that the operations on X and Y are only shifts and adds.
標簽: Coordinate elementary computing functions
上傳時間: 2015-11-08
上傳用戶:saharawalker
最小二乘曲面擬合程序(m文件),對一組三維數據z=f(x,y)擬合,成為關于x和y的多項式
標簽: 程序
上傳時間: 2015-11-10
上傳用戶:xsnjzljj
Tracking a moving object through several frames, provided changes from frame to frame are on the order of +-(10 + "X Range") pixels in the X direction and +-(10 + "Y Range") in the Y direction is done automatically because of a relatively large area of exploration during the search for an optimal (new) position for a particular control point and a very strong force exerted by large values of the image gradient.
標簽: frame Tracking provided changes
上傳時間: 2015-11-17
上傳用戶:zgu489
通過JAVA設計 GUI 界面的計算器程序,用戶可以通過鼠標依次輸入參加計算的數值,進行加、減、乘、除等混合運算,這些完成標準計算器的基礎操作。當選擇科學計算器后,可以實現sin 、 cos 、 tan 、 ln、x^y、x^2、x^3、pi、n!、mod和十六進制除這個以外還可以刪除輸入,清空結果,求1除X,X百分比,十進制是,八進制,二進制的相互轉換。
上傳時間: 2015-11-22
上傳用戶:阿四AIR
使用C++實現的Graham掃描法(求解凸包問題),可設置生成隨機點的個數、樣式,同時支持設置顯示范圍、顯示算法處理時間及使用文件導入導出點等功能。(文件格式為,頭四個字節是點的個數,以后分別是各個點的x坐標和y坐標,每個數值均占4字節)。
標簽: Graham
上傳時間: 2014-11-29
上傳用戶:pompey
實現int或long int類型數據向time類型數據轉化,比如說,int i=258147369, 它將轉化為x小時y分z秒。
上傳時間: 2015-12-04
上傳用戶:waitingfy
“網絡基本輸入/輸出系統”(Network Basic Input/Output System, NetBIOS)是一種標準的應用程序編程接口( A P I),1 9 8 3年由S y t e k公司專為I B M開發成功)
標簽: Network NetBIOS Output System
上傳時間: 2015-12-09
上傳用戶:wanghui2438
2007考研大綱詞匯 ,Y.mp3
上傳時間: 2015-12-09
上傳用戶:fnhhs
FuncPlotter is a combined Java application and applet for displaying two-dimensional plots of explicit functions in one variable (ie, FuncPlotter plots functions of the form y = f(x), where f(x) is composed from common mathematical operators).
標簽: two-dimensional FuncPlotter application displaying
上傳時間: 2015-12-16
上傳用戶:妄想演繹師