摘要: 针对用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
中图分类号:
沈 雷;李 翔;邵培南. C/C++软件测试工具的元数据结构设计与实现[J]. 计算机工程, 2008, 34(13): 43-45,4.
SHEN Lei; LI Xiang; SHAO Pei-nan. Design and Implementation of Meta Structure in C/C++ Test Tool[J]. Computer Engineering, 2008, 34(13): 43-45,4.