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

计算机工程 ›› 2007, Vol. 33 ›› Issue (08): 267-269. doi: 10.3969/j.issn.1000-3428.2007.08.094

• 开发研究与设计技术 • 上一篇    下一篇

基于BISON的 UML语法分析器设计

蒋国明1,魏仰苏2,宋瑾钰1   

  1. (1. 浙江理工大学信息电子学院,杭州 310033;2. 浙江水利水电专科学校计算机系,杭州 310018)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-04-20 发布日期:2007-04-20

Design of UML Syntax-analyzer Using BISON

JIANG Guoming1, WEI Yangsu2, SONG Jinyu1   

  1. (1. College of Information & Electronics, Zhejiang University of Technology, Hangzhou 310033; 2. Department of Computer, Zhejiang Water Conservancy and Hydropower College, Hangzhou 310018)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-04-20 Published:2007-04-20

摘要: 目前基于UML类图和状态图做面向对象软件测试方面已有不少研究,因此研究如何实现一个UML语法分析器有其现实意义。利用BISON设计了一个UML语法分析器,通过对UML文档的词法语法分析,实现了从UML文档中自动提取用于软件测试的信息,提高了软件测试效率。在VC6.0环境下对该分析器仿真,实验结果表明,软件能正确提取测试需要的信息。

关键词: 软件测试, 统一建模语言, 语法分析器, 类图, 状态图

Abstract: Studying in how to develop a UML Syntax-analyzer is significant for there are many researchs on object-oriented test with UML class diagram and statechart diagram at present. The paper develops a UML analyzer by using BISON, which realizes getting information used to software testing automatically from documents of UML by scanning and analyzing them. It improves the efficiency of software testing. Simulating the software under the environment of VC6.0 and the results show that it can work correctly.

Key words: Software test, UML, Syntax-analyzer, Class diagram, Statechart diagram