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

计算机工程 ›› 2008, Vol. 34 ›› Issue (13): 43-45,4. doi: 10.3969/j.issn.1000-3428.2008.13.016

• 软件技术与数据库 • 上一篇    下一篇

C/C++软件测试工具的元数据结构设计与实现

沈 雷,李 翔,邵培南   

  1. (华东计算技术研究所,上海 200233)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2008-07-05 发布日期:2008-07-05

Design and Implementation of Meta Structure in C/C++ Test Tool

SHEN Lei, LI Xiang, SHAO Pei-nan   

  1. (East-China Institute of Computer Technology, Shanghai 200233)
  • Received:1900-01-01 Revised:1900-01-01 Online:2008-07-05 Published:2008-07-05

摘要: 针对用C/C++语言进行的语义分析,设计一种中间结构,即元数据结构。元数据结构实现了源代码的语义层次上的抽象,通过元数据结构和相关应用语义配置,过滤出源程序中符合应用的语义内容,实现软件测试工具的程序插装等功能。在中间结构实现过程中,构造一个二次解析引擎,以解决传统解析方法的复杂性及不确定性,实现对各种编程语言的支持。

关键词: 软件测试, 语义层次, 元数据结构

Abstract: This paper proposes a new meta structure which makes C/C++ source codes with semantic tag. Using the meta structure with semantic configuration related to application, test tool can filter some semantic tags for instrument and so on. A dual parser engine is developed to create the structure, which avoids the complexity and indeterminacy of classic methods, and can support kinds of programming languages very well.

Key words: software test, semantic levels, meta structure

中图分类号: