期刊文献+

基于IEC61131-3标准的ST语言文法分析器的实现与应用 被引量:4

Implementation and Application of ST Language Grammar Analyzer Based on IEC61131-3 Standard
下载PDF
导出
摘要 本文通过对编译原理的研究和当前流行的通用编译器的剖析,提出了一种基于IEC61131-3标准的ST语言编译前端的实现方法,设计并实现了语法分析的算法。基于当前业界最为成熟的编译前端生产工具YACC设计实现ST语言编译器的词法分析器和语法分析器。实际应用表明,本研究所实现的ST语言编译器具有高效可靠、操作灵活、使用方便等优点。 According to the research of compiler theory and the analysis of the current popular compiler, we propose a method to implement the ST language compiler based on IEC 61131-3 standard, then a parsing algorithm is designed and implemented, Using the most current industry mature compiler front-end production tools Bison make ST language compiler lexical analyzer and syntax analyzer. The practical application shows that the ST language compiler implemented in this research has the advantages of high efficiency, reliable, flexible operation, easy to use and so on.
出处 《仪器仪表标准化与计量》 2015年第5期26-29,共4页 Instrument Standardization & Metrology
基金 国家863高技术研究计划"CMC芯片的软件应用平台开发"(2012AA041703)资助
关键词 ST语言 语法规则 语法分析器 编译 ST Language Syntax Rule Parser Compile
  • 相关文献

参考文献4

二级参考文献18

  • 1王蔚庭.解析工业编程语言国际标准IEC61131-3[J].国内外机电一体化技术,2007,10(2):47-62. 被引量:11
  • 2Karl-Heinz John, Michael Tiegelkamp. IEC61131-3 : Program- ruing Industrial Automation Systems [ M ]. New York : Spring- er, 2001.
  • 3杨锡凯,陈忻镛,曹以明,等.基于IEC61131-3标准的SoftPLC跨平台实现机制建构[C]//中国机械工程学会第二十四届全国学术研讨会.2007:2063-2068.
  • 4彭瑜,何衍庆.1EC61131-3编程语言及应用基础[M].北京:机械工业出版社,2009:7-15,125.
  • 5Terence Parr. ANTLR Reference Manual [ EB/OL]. http:// www. antlr, org/share/1084743321127/ANTLR_Reference_ Manual. pdf, 2004.
  • 6Terence Parr. Language Translation Using ANTLR and String Template[ EB/OL]. http://www, antlr, org/wiki/display/ ST/Language + Translation + Using + ANTLR + and + String- Template ,2009.
  • 7WSC. 3KeyMasterTM-Comprehesive Simulation Platform[ EB/ OL]. https://www, ws-corp, com/wsc08/default, asp? PageID = 8,2012.
  • 8Khronos OpenCL Working Group. The OpenCL Speci? cation [R]. [2009]. http://www, khronos, org/registry/c|/.
  • 9Tian X, Saito H, Preis S V. Compiling C/Cq-q-SIMD Exten- sions for Function and Loop Vectorization on Multicore-SIMD Processors [C]//Multicore and GPU Programming Models, Lan- guages and Compilers Workshop. 2012:2349-2358.
  • 10Klemm M,et al. Extending OpenMP" with vector constructs for modern multicore SIMD architectures[C]//OpenMP in a Heter- ogeneous World, 2012 .. 59-72.

共引文献1

同被引文献19

引证文献4

二级引证文献12

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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