逻辑组态软件中编译器的设计与实现-软件工程专业毕业论文.docxVIP

逻辑组态软件中编译器的设计与实现-软件工程专业毕业论文.docx

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
摘要编译是计算机软件由开发到应用过程巾不可缺少的环节,编译器的设计 摘要 编译是计算机软件由开发到应用过程巾不可缺少的环节,编译器的设计 一直是计算机科学技术领域重要的研究内容。虽然目前已有许多各种各样的 编译器,但由于应用的广泛,仍不断有新的编译器等待丌发。工业控制领域 中耐博曾控制器上结构化文本语言(ST)和指令列表语言(1L)编译器就是其中 的一个。本文结合工程实际,运用编译理论和设计技术设计并实现了ST语 言和IL语言在耐博。控制器上的编译器。 本文简述了编译技术的基本理论和编译器设计的过程及其方法。根据项 目对本编译器的需求,规划了编译器的体系结构,提出了编译器的系统设计。 在系统设计的基础上,文章提出了编泽器的实现方案,介绍了相关的软件技 术,并对系统实现中的接口、关键程序和测试用例等,作了较详细的说明。 最后给出了本编译器的测试结果,列举了编译器作为整个耐博。系统的一部 分在实际项目中的部分应用。本文运用编译原理中E下文无关文法和 LALR(1)分析算法对词法语法脚本进行了优化;使用PCLEX和PCYACC工 具生成了词法扫描器和语法扫描器;利用语言环境的特殊设计优化了符号表 的设计和算法。根据系统的运行环境,增强了语义分析阶段的数据类型检查、 自动类型转换和类型警告及错误提示等功能。根据语法的特殊规则,还在语 义分析阶段提供了全面的参数检查和自动选配功能,以简化应用软件的编 程。 本文是在实际项目研发中,用软件工程的理论与技术对耐博。控制器上 的编译器进行的成功开发,是编译理论和软件工程思想的一次典型应用。 关键词编译器:结构化文本语言;指令列表语言;耐博@控制器 AbstractThe Abstract The design of compilers has been an important research in the Computer Science,for compiling is an indispensable process between the designs of software and its implementations.So,more and more new generations of compliers come out because of their expanding scale of applications.The compiler for the Structured Text(ST)language and Instruction List(IL) language on Naibor9 Controller is one of the most important modem compilers. This kind of compiler combined with the actual engineering backgrounds is implemented in the thesis,based on the theory of compiling and designing. The theory of compiling and design method is presented firstly in the article.And then according to the actual background of my project,the article finishes the compiler’S blue print and the generic system of the compiler.After this the article discusses the key questions in the implementation of system such as system interface,key program of system implementation and test plan. Finally the development and test work of the compiler is described,and hence the test results of the compiler and list the applications of Naibor。system and compiler is presented. Compared with traditional methods,this article has the following advantages:(1)the lexical script and syntax script are optimized usin

您可能关注的文档

文档评论(0)

131****9843 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档