作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 2004, Vol. 30 ›› Issue (03): 76-.

• 论文 • 上一篇    下一篇

面向对象技术在软件PLC编译器中的应用

张承瑞,程荣亮,王恒   

  1. 山东大学机械工程学院,山东大学机械工程学院,山东大学机械工程学院 济南 250061
  • 发布日期:2004-02-15

Application of Oriented-object Technology in SoftPLC Compiler

ZHANG Chengrui, CHENG Rongliang, WANG Heng   

  1. (College of Mechenics Engineering, Shandong University, Jinan 250061)
  • Published:2004-02-15

摘要: 针对软件PLC的IL的语言,进行面向对象的设计和分析。通过对面向对象的技术的具体应用,透过使用设计模式的思想增强了系统的可维护性、可扩展性以及可复用性。文章对词法分析、数据类型、符号表和语句处理的类的结构进行了介绍,通过这些类的使用增加了编译系统灵活性。

关键词: 设计模式, 可编程序控制器, Singleton, Bridge

Abstract: In this article, the compiler of instruction language for SoftPLC is designed and analyzed with oriented-object technology. With the use of oriented-object technology and design pattern idea, it implements the class structure of lexical analysis, data structure, symbol table and syntax parsing. From the description of these methods, it can draw a conclusion that, with OOP methods, the system has many advantages such as flexibility, scalability and reusability.

中图分类号: