期刊文献+

flex和bison在软PLC编译器中的应用 被引量:5

Application of flex and bison in compiler for SoftPLC
下载PDF
导出
摘要 软PLC(可编程逻辑控制器)编译器是软PLC开发系统中的重要部分,同时也是整个开发系统中实现难度最大的部分。flex(快速词法分析发生器)和bison是优秀的词法扫描和语法分析工具,二者已经成为标准的Unix实用程序。文章介绍了在Linux系统下,应用flex和bison对符合IEC61131标准的指令表语言进行词法和语法分析的详细过程,给出了主要的代码片段,并通过实例进行了验证,证明了方法的正确性和可行性。 The SoftPLC' (Programmable Logic Controller)compiler is the most important and difficult part of the SoftPLC's development.flex(Fast Lexical Analyzer Generator) and bison are outstanding tools for lexical and syntactic analyzing.The research is based on Linux operating system.This paper presents the detail process of using flex and bison to analyze the Instruction List (IL),which is canonical and ordained by IEC61131-3.The validity and feasibility of the method given in the paper are testified with some examples.
出处 《微计算机信息》 2009年第19期235-237,共3页 Control & Automation
基金 基金申请人:于东 项目名称:基于控制总线的高性能数控系统及成套装置 基金颁发部门:国家科学技术部(2007BAP20B01)
关键词 软PLC 指令表语言 编译器 FLEX BISON SoftPLC IL compiler flex bison
  • 相关文献

参考文献5

  • 1Karl-Heinz John, Michael Tiegelkamp. IEC 61131-3: Programming Industrial Automation Systems; Concepts and Programming Languages [M], Requirements for Programming Systems, Decision-Making Tools. Springer.2001.
  • 2Steven S Muchnick.高级编译器设计与实现[M].北京:机械工业出版社,2005.
  • 3John R.Levine,Tony Mason著.杨作梅,张旭东译.lex与yace[M].北京:机械工业出版社,2003.
  • 4陈辉,李坚强,裴海龙,廖俊.基于梯形图语言的软PLC技术研究与实现[J].微计算机信息,2006(09S):266-268. 被引量:14
  • 5姚远,丑武胜,陈友东,王田苗,张晓亮.软PLC编程开发系统的设计和实现[J].组合机床与自动化加工技术,2006(6):14-17. 被引量:13

二级参考文献10

共引文献26

同被引文献22

引证文献5

二级引证文献13

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部