1 / 91
文档名称:

2015年毕业设计一门自定义编程语言的设计及其编译器的实现论文.doc

格式:doc   页数:91页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

2015年毕业设计一门自定义编程语言的设计及其编译器的实现论文.doc

上传人:1511073634 2015/8/28 文件大小:0 KB

下载得到文件列表

2015年毕业设计一门自定义编程语言的设计及其编译器的实现论文.doc

相关文档

文档介绍

文档介绍:一门自定义编程语言的设计及其编译器的实现
摘要
编译程序是现代计算机必不可少的组成部分,它完成了将源程序转换为目标程序的全部过程。
在我这次的毕业设计当中,定义和设计了一个类C的编程语言。由于我自身能力、时间和所学知识有限,设计出的这门语言十分简单,并没能提出一个准确有效的对现有编程语言的改进方案。当然,这个课题毕竟是一个很前沿的问题,作为大学毕业生的我只是对这个前沿问题进行了一些实践性的尝试。
当然,我的毕业设计中最重要的部分就是实现了这门编程语言的编译器,它的主要功能包括了词法分析、语法分析、语义分析、中间代码生成(中间代码采用了四元式的结构),以及目标代码生成(目标代码采用了汇编语言),可以将符合语法的程序成功执行,并显示结果。由于技术所限,编译器没有进行进行代码优化和对错误的处理。但总体而言,这个编译器项目的功能性还是十分完备的。
关键词: 编译器;程序设计语言;词法分析;语法分析
A Design of Custom Programming Language and the Realization of piler
Abstract
piler is an essential part of the puter , pleted the source to the target program the whole process.
In my current graduation designs, I definited and designed a similar C programming language . Because of my own ability , limited time and the knowledge , the language is very simple , and I did not able to present an accurate and effective for improvement program existing programming languages. Of course , this subject is after all a very cutting-edge issues , as university graduates on the cutting-edge issues , I just made ​​some practical attempt.
In addition , the most important part of my project is to realize this programming piler, its main features include lexical analysis , parsing, semantic analysis and code generation ( intermediate code using a quaternion type of structure ) , and target code generation ( object code using assembly language ) , in line with the syntax of the program can be executed essfully , and displays the results . Due to technical limitations, piler for code optimization and error handling . Overall, however, the functionality of piler project is still pleted.
Keywords: complier;Programing Language; lexical analyzers; Syntax analysis
目录
摘要 i
Abstract ii
第一章绪论 1
一论文主要内容 1
(一) 程序设计语言的设计 1
(二) 编译器的实现 1
(三) 在线编译思路的尝试 1
二文献综述 1
(一) 前言 1
(二) 研究概述 2
三研究编程语言的目的和意义 3
四研究编译器的目的和意义 3
第二章自定义语言的设计 4
一程序设计语言概述 4
(一) 程序设计语言概念 4
(二) 程序设计语言分类 4
(三) 程序设计语言的实现 4
二程序设计语言发展现状 4
三程序设计语言的发展趋势 5
四自定义语言的设计 5
(一) 词法的设计 5
(二) 语法的设计 6
(三) 中间代码的选择 6
第三章编译器概