詞法分析 1 試驗(yàn)?zāi)康? 設(shè)計(jì),編制并調(diào)試一個(gè)此法分析程序,加深對(duì)此法分原理的理解. 2 試驗(yàn)要求 1)待分析的簡(jiǎn)單語(yǔ)言的詞法 * 關(guān)鍵字: begin if then while do end 所有關(guān)鍵字都是小寫(xiě). 2)運(yùn)算符和界符: : = + * - / < <= <> > >= = ( ) # 3)其他單詞是標(biāo)識(shí)符(ID)和整數(shù)型常數(shù)(NUM),通過(guò)一下正規(guī)式定義: ID=letter (letter|digit)* NUM=digit digit* 4)空格由空白,制表符和換行符組成,空格一般用來(lái)分隔ID,NUM,運(yùn)算符,界符和關(guān)鍵字,此法分析階段通常被忽略. 3 各種單詞符號(hào)對(duì)應(yīng)的種別碼如表所示
上傳時(shí)間: 2017-01-08
上傳用戶(hù):dongqiangqiang
Introduction Computer security is undeniably important, and as new vulnerabilities are discovered and exploited, the perceived need for new security solutions grows. "Trusted computing" initiatives propose to solve some of today s security problems through hardware changes to the personal computer. Changing hardware design isn t inherently suspicious, but the leading trusted computing proposals have a high cost: they provide security to users while giving third parties the power to enforce policies on users computers against the users wishes -- they let others pressure you to hand some control over your PC to someone else. This is a "feature" ready-made for abuse by software authors who want to anticompetitively choke off rival software. It needn t be this way: a straightforward change to the plans of trusted computing vendors could leave the security benefits intact while ensuring that a PC owner s
標(biāo)簽: vulnerabilities Introduction discovered undeniably
上傳時(shí)間: 2014-01-05
上傳用戶(hù):yph853211
The worm will produce Arod.exe and " get to C: \WINDOWS catalogue . After starting the machine again , will put worm shelf Arod.exe into C: \, C:\WINDOWS,In zip file under WINDOWS \system32 , these three catalogues ,. As the user opens Outlook Express, the worm will search Outlook Express and accept a mail while inserting , and falsely use the person who sends one name and send the addressee for this mail of worm s mail automatically.
標(biāo)簽: catalogue starting produce WINDOWS
上傳時(shí)間: 2013-12-18
上傳用戶(hù):wang5829
這是一套非常好用的C++物件導(dǎo)向式程式編輯器,C++是程序語(yǔ)言C的擴(kuò)充,C/C++語(yǔ)言已經(jīng)是一套古老語(yǔ)言,成為了很多作業(yè)系統(tǒng)與應(yīng)用軟體的編輯大宗,環(huán)境適用於WIN95~WINXP。
標(biāo)簽: 程式
上傳時(shí)間: 2014-08-06
上傳用戶(hù):tyler
用pascal編一個(gè)年歷具體要求是:設(shè)計(jì)電子月歷的程序 一、任務(wù)內(nèi)容(task) 1.設(shè)計(jì)的程序應(yīng)具有以下功能: (1)任意輸入某年的某一月份,屏幕應(yīng)能顯示該月的月歷; (2)應(yīng)允許多次從鍵盤(pán)輸入某月份,并自行設(shè)置結(jié)束標(biāo)志。 (3)如在屏幕上輸入2007年12月份的信息,屏幕的顯示形式如下: month Sun. Mon. Tue. Wed. Thu. Fri. Sat. 12 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 (4)備注:輸出界面也可以是其它形式,另外還可對(duì)輸出界面進(jìn)行必要的修飾(如:加入表格線(xiàn))。 2.程序設(shè)計(jì)要求: 1)采用結(jié)構(gòu)化的程序設(shè)計(jì)方法進(jìn)行編程; 2)用case控制語(yǔ)句實(shí)現(xiàn)選擇分支結(jié)構(gòu); 3)用while \repeat…until\for語(yǔ)句實(shí)現(xiàn)循環(huán)結(jié)構(gòu); 4)利用標(biāo)準(zhǔn)過(guò)程readkey實(shí)現(xiàn)程序執(zhí)行暫停; 5)利用標(biāo)準(zhǔn)過(guò)程 clrscr實(shí)現(xiàn)清屏操作。
上傳時(shí)間: 2014-01-07
上傳用戶(hù):franktu
PC與單片機(jī)雙向通訊智能溫控程序 #include <AT89X51.H> #include <intrins.h> #define Key_UP P1_0 #define Key_DOWN P1_1 #define Key_SET P1_2 #define RelayOutPort P2_0 #define LEDPort P0 #define DELPort P2_1 #define LEDTwoC P3_6 #define LEDThreeC P3_7 #define TMPort P2_7 #define INBUF_LEN 5 //數(shù)據(jù)長(zhǎng)度 unsigned char inbuf1[INBUF_LEN]={ 0 , 0 , 0 , 0 , 0 } //發(fā)送緩沖區(qū) unsigned char inbuf2[50] //接收緩沖區(qū) unsigned char count3 void init_serialcomm( void ) { SCON = 0x50 //SCON: serail mode 1, 8-bit UART, enable ucvr TMOD |= 0x20 //TMOD: timer 1, mode 2, 8-bit reload PCON |= 0x80 //SMOD=1 TH1 = 0xFA //Baud:4800 fosc=11.0592MHz IE |= 0x90 //Enable Serial Interrupt TR1 = 1 // timer 1 run } //向串口發(fā)送一個(gè)字符 void send_char_com( unsigned char ch) { SBUF=ch while (TI== 0 ) TI= 0
標(biāo)簽: include intrins define Key_UP
上傳時(shí)間: 2014-11-29
上傳用戶(hù):風(fēng)之驕子
VB遙控播放器紅外遙控解碼 #include <regX52.h> #define c(x) (x*110592/120000) sbit Ir_Pin=P3^2 sbit beep=P2^1 //sbit RELAY=P2^0 #define INBUF_LEN 4 //數(shù)據(jù)長(zhǎng)度 unsigned char inbuf1[INBUF_LEN]={ 0 , 0 , 0 , 0 } //發(fā)送緩沖區(qū) unsigned char inbuf2[50] //接收緩沖區(qū) unsigned char count3 void init_serialcomm( void ) { SCON = 0x50 //SCON: serail mode 1, 8-bit UART, enable ucvr T2CON=0x30 TH2=0x00 TL2=0x00 RCAP2H=0xFF RCAP2L=0xDC TR2=1 } //向串口發(fā)送一個(gè)字符 void send_char_com( unsigned char ch) { SBUF=ch while (TI== 0 ) TI= 0
標(biāo)簽: include 110592 120000 define
上傳時(shí)間: 2013-12-21
上傳用戶(hù):yph853211
LXI Standards Documents are developed within the LXI Consortium and LXI Technical Working Groups sponsored by the LXI Consortium Board of Directors. The LXI Consortium develops its standards through a consensus development process modeled after the American National Standards Institute, which brings together volunteers representing varied viewpoints and interests to achieve the final product. Volunteers are not necessarily members of the Consortium and serve without compensation. While the LXI Consortium administers the process and establishes rules to promote fairness in the consensus development process, the LXI Consortium does not exhaustively evaluate, test, or verify the accuracy of any of the information contained in its standards.
標(biāo)簽: LXI Consortium Documents Standards
上傳時(shí)間: 2013-12-23
上傳用戶(hù):sxdtlqqjl
瑞賽模型車(chē)比賽參考程序,可完成基本的循跡功能,轉(zhuǎn)彎效果很好
上傳時(shí)間: 2013-12-10
上傳用戶(hù):zaizaibang
這是我第一個(gè)尋跡小車(chē),程序很簡(jiǎn)單,只有十多行。主要用了兩個(gè)外部中斷。走的是黑底白線(xiàn)的軌跡。傳感器部分的電路圖大家可以在網(wǎng)上找。原理是如果傳感器在黑色背景上,輸出高電平。如果檢測(cè)到白線(xiàn),輸出低電平,把兩路傳感器接到單片機(jī)的P32,P33。就能實(shí)現(xiàn)循白色軌跡的功能了。傳感器我用的是ST168。ST178,ST188也可以。 Proteus仿真文件中用了兩個(gè)開(kāi)關(guān)來(lái)替代,可以觀察電機(jī)的反應(yīng)。
標(biāo)簽: 尋跡小車(chē)
上傳時(shí)間: 2013-12-22
上傳用戶(hù):zhangyigenius
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1