天堂国产午夜亚洲专区-少妇人妻综合久久蜜臀-国产成人户外露出视频在线-国产91传媒一区二区三区

當前位置:主頁 > 科技論文 > 軟件論文 >

Logo語言編譯器與執(zhí)行系統(tǒng)的設計

發(fā)布時間:2018-04-25 07:05

  本文選題:Logo語言 + 編譯器; 參考:《哈爾濱工程大學》2016年碩士論文


【摘要】:信息時代的到來使計算機程序、嵌入式硬件和無線通信技術相關的教育日益重要。近年無論國內還是國外相關教育的啟蒙年齡逐漸低齡化,而且人才缺口越來越大,中小學生有必要去學習電子信息類科學,而基礎編程能力是現代電子信息類科學的入門能力。考慮到中小學生的學習能力和學習效果,以應用量最大的C語言入門去學習編程的門檻很高,雖然C語言已經是最基礎的計算機語言。在上個世紀六十年代出現的Logo語言語法規(guī)則和人類自然語言的語法規(guī)則很像,Logo語言的語法通過了類似于控制畫筆在可視界面上畫出和輸入的編程語言邏輯相同的圖形的方式給予了編程初學者最直觀的印象和理解。雖然Logo語言的誕生伴隨了一些零星的相應編譯器的實現,但是這些編譯器大多數是早期基于DOS系統(tǒng)的程序,沒有界面。在圖形化操作系統(tǒng)爆發(fā)的今天,Logo語法似乎已被遺忘。本文是在Logo語言語法規(guī)則的基礎上,利用現代計算機軟硬系統(tǒng)開發(fā)平臺,設計出了一款擁有可拖拽積木圖形化的編譯器,并利用現代電路理論設計了一款和圖形編譯器所畫圖形相對應的模擬其畫筆運動的智能車。積木拖拽化圖形界面的設計可以使中小學學生大大減輕了編程時的邏輯思考負擔,有利用培養(yǎng)模塊化編程思維;對應智能小車藍牙無線連接的設計可以使中小學生充分感受當代物聯網的思維模式。雖然當今市面存在了一些上給中小學生學計算機的軟硬件工具,但它們存在系統(tǒng)速度慢、擴展性弱、功能少、成本高等不足。本文設計的基于Logo語言語法規(guī)則的積木圖形化編譯器與其模擬運動智能車擁有豐富的可擴展性,前端上位機的界面可以方便更改,內置詞法語法邏輯功能可以更愛,后端智能小車上還可以擴展例如抬筆落筆等功能,這些可擴展性為未來市場的需求做好了準備。Logo編譯器上位機的設計是在visual studio開發(fā)環(huán)境下C++語言實現的,其中主要包括詞法分析器,語法分析器和圖形界面。與其關聯的智能車硬件控制電路的采用以單片機為主控的電路,設計了使其準確并穩(wěn)定運行的外圍控制電路。本文還研究了智能車與上位機間無線通信的解決方案,設計了一套針對課題的專屬Logo協(xié)議。整個系統(tǒng)經過測試,圖形界面和智能車運行結果良好,無線連接不易掉線。初步達到了設計的初衷。
[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.
【學位授予單位】:哈爾濱工程大學
【學位級別】:碩士
【學位授予年份】:2016
【分類號】:TP314

【參考文獻】

相關期刊論文 前10條

1 李朋飛;陳曙暉;徐成成;;一種正則表達式編譯器優(yōu)化技術[J];計算機技術與發(fā)展;2015年09期

2 蔣俊;劉天宇;簡雨沛;;藍牙智能小車系統(tǒng)設計[J];信息技術與信息化;2015年06期

3 楊杏;陳富林;周霏;;基于Qt的工業(yè)機器人語言系統(tǒng)的設計[J];組合機床與自動化加工技術;2015年03期

4 孔繁云川;王娜;;基于太陽能智能藍牙小車的設計[J];科技資訊;2014年27期

5 趙曉鳳;張順;周t熻,

本文編號:1800266


資料下載
論文發(fā)表

本文鏈接:http://www.sikaile.net/kejilunwen/ruanjiangongchenglunwen/1800266.html


Copyright(c)文論論文網All Rights Reserved | 網站地圖 |

版權申明:資料由用戶e87b1***提供,本站僅收錄摘要或目錄,作者需要刪除請E-mail郵箱bigeng88@qq.com