摘要: 针对软件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.
中图分类号:
张承瑞,程荣亮,王恒. 面向对象技术在软件PLC编译器中的应用[J]. , 2004, 30(03): 76-.
ZHANG Chengrui, CHENG Rongliang, WANG Heng. Application of Oriented-object Technology in SoftPLC Compiler[J]. , 2004, 30(03): 76-.