Logo語言編譯器與執(zhí)行系統(tǒng)的設(shè)計
發(fā)布時間:2018-04-25 07:05
本文選題:Logo語言 + 編譯器; 參考:《哈爾濱工程大學(xué)》2016年碩士論文
【摘要】:信息時代的到來使計算機程序、嵌入式硬件和無線通信技術(shù)相關(guān)的教育日益重要。近年無論國內(nèi)還是國外相關(guān)教育的啟蒙年齡逐漸低齡化,而且人才缺口越來越大,中小學(xué)生有必要去學(xué)習(xí)電子信息類科學(xué),而基礎(chǔ)編程能力是現(xiàn)代電子信息類科學(xué)的入門能力。考慮到中小學(xué)生的學(xué)習(xí)能力和學(xué)習(xí)效果,以應(yīng)用量最大的C語言入門去學(xué)習(xí)編程的門檻很高,雖然C語言已經(jīng)是最基礎(chǔ)的計算機語言。在上個世紀(jì)六十年代出現(xiàn)的Logo語言語法規(guī)則和人類自然語言的語法規(guī)則很像,Logo語言的語法通過了類似于控制畫筆在可視界面上畫出和輸入的編程語言邏輯相同的圖形的方式給予了編程初學(xué)者最直觀的印象和理解。雖然Logo語言的誕生伴隨了一些零星的相應(yīng)編譯器的實現(xiàn),但是這些編譯器大多數(shù)是早期基于DOS系統(tǒng)的程序,沒有界面。在圖形化操作系統(tǒng)爆發(fā)的今天,Logo語法似乎已被遺忘。本文是在Logo語言語法規(guī)則的基礎(chǔ)上,利用現(xiàn)代計算機軟硬系統(tǒng)開發(fā)平臺,設(shè)計出了一款擁有可拖拽積木圖形化的編譯器,并利用現(xiàn)代電路理論設(shè)計了一款和圖形編譯器所畫圖形相對應(yīng)的模擬其畫筆運動的智能車。積木拖拽化圖形界面的設(shè)計可以使中小學(xué)學(xué)生大大減輕了編程時的邏輯思考負擔(dān),有利用培養(yǎng)模塊化編程思維;對應(yīng)智能小車藍牙無線連接的設(shè)計可以使中小學(xué)生充分感受當(dāng)代物聯(lián)網(wǎng)的思維模式。雖然當(dāng)今市面存在了一些上給中小學(xué)生學(xué)計算機的軟硬件工具,但它們存在系統(tǒng)速度慢、擴展性弱、功能少、成本高等不足。本文設(shè)計的基于Logo語言語法規(guī)則的積木圖形化編譯器與其模擬運動智能車擁有豐富的可擴展性,前端上位機的界面可以方便更改,內(nèi)置詞法語法邏輯功能可以更愛,后端智能小車上還可以擴展例如抬筆落筆等功能,這些可擴展性為未來市場的需求做好了準(zhǔn)備。Logo編譯器上位機的設(shè)計是在visual studio開發(fā)環(huán)境下C++語言實現(xiàn)的,其中主要包括詞法分析器,語法分析器和圖形界面。與其關(guān)聯(lián)的智能車硬件控制電路的采用以單片機為主控的電路,設(shè)計了使其準(zhǔn)確并穩(wěn)定運行的外圍控制電路。本文還研究了智能車與上位機間無線通信的解決方案,設(shè)計了一套針對課題的專屬Logo協(xié)議。整個系統(tǒng)經(jīng)過測試,圖形界面和智能車運行結(jié)果良好,無線連接不易掉線。初步達到了設(shè)計的初衷。
[Abstract]:With the advent of the information age, the education of computer programs, embedded hardware and wireless communication technology is becoming more and more important. In recent years, both at home and abroad, the age of enlightenment is getting younger, and the gap of talents is increasing. It is necessary for primary and middle school students to learn electronic information science, and the ability of basic programming is the introductory ability of modern electronic information science. Considering the learning ability and learning effect of primary and middle school students, the threshold of learning programming with the most widely used C language is very high, although C language is already the most basic computer language. The syntax rules of the Logo language that emerged in the 1960s and the grammar rules of the human natural language are very much like the syntax of the Logo language, which passes through the same programming language logic as the control brush that is drawn on the visual interface with the input. The graphic approach gives the beginner the most intuitive impression and understanding of programming. Although the birth of the Logo language has been accompanied by the implementation of some sporadic corresponding compilers, most of these compilers are based on the early DOS system programs, no interface. Today, when graphical operating systems erupt, the Logo syntax seems to have been forgotten. Based on the syntax rules of Logo language and the development platform of modern computer soft and hard system, this paper designs a compiler with drag-and-drop block graphics. Using the modern circuit theory, an intelligent car is designed to simulate the movement of its brush, which corresponds to the graphics drawn by the graphic compiler. The design of building block drag-and-drop graphic interface can greatly lighten the logical thinking burden of primary and middle school students and cultivate the thinking of modularization programming. The design of Bluetooth wireless connection for smart car can make primary and middle school students fully experience the thinking mode of modern Internet of things. Although there are some software and hardware tools on the market for primary and middle school students to learn computer, they have some shortcomings such as slow system speed, weak expansibility, low function, high cost and so on. Based on the syntax rules of Logo language, the building block graphic compiler designed in this paper has abundant expansibility with its simulated motion intelligent car, the interface of the front end computer can be changed conveniently, and the built-in lexical syntax logic function can be more loved. The backend intelligent car can also extend the functions such as lifting pen and writing pen. These expansibility is prepared for the future market demand. The design of the upper computer of the .Logo compiler is implemented in C language under the visual studio development environment. It mainly includes lexical analyzer, parser and graphical interface. The related hardware control circuit of intelligent vehicle is controlled by single chip microcomputer, and the peripheral control circuit is designed to make it run accurately and stably. This paper also studies the solution of wireless communication between intelligent vehicle and host computer, and designs a set of exclusive Logo protocol. The whole system is tested, the graphical interface and smart car run well, wireless connection is not easy to drop wire. Initially achieved the original intention of the design.
【學(xué)位授予單位】:哈爾濱工程大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2016
【分類號】:TP314
【參考文獻】
相關(guān)期刊論文 前10條
1 李朋飛;陳曙暉;徐成成;;一種正則表達式編譯器優(yōu)化技術(shù)[J];計算機技術(shù)與發(fā)展;2015年09期
2 蔣俊;劉天宇;簡雨沛;;藍牙智能小車系統(tǒng)設(shè)計[J];信息技術(shù)與信息化;2015年06期
3 楊杏;陳富林;周霏;;基于Qt的工業(yè)機器人語言系統(tǒng)的設(shè)計[J];組合機床與自動化加工技術(shù);2015年03期
4 孔繁云川;王娜;;基于太陽能智能藍牙小車的設(shè)計[J];科技資訊;2014年27期
5 趙曉鳳;張順;周t熻,
本文編號:1800266
本文鏈接:http://sikaile.net/kejilunwen/ruanjiangongchenglunwen/1800266.html
最近更新
教材專著