srcML: An Infrastructure for the Exploration, Analysis, and Manipulation of Source Code A Tool Demonstration

被引:80
|
作者
Collard, Michael L. [1 ]
Decker, Michael John [2 ]
Maletic, Jonathan I. [2 ]
机构
[1] Univ Akron, Dept Comp Sci, Akron, OH 44325 USA
[2] Kent State Univ, Dept Comp Sci, Kent, OH 44242 USA
基金
美国国家科学基金会;
关键词
srcML; static code analysis; source transformation; TRANSFORMATION; LANGUAGE;
D O I
10.1109/ICSM.2013.85
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
srcML is an XML representation for C/C++/Java source code that forms a platform for the efficient exploration, analysis, and manipulation of large software projects. The lightweight format allows for round-trip transformation from source to srcML and back to source with no loss of information or formatting. The srcML toolkit consists of the src2srcml tool for robust translation to the srcML format and the srcml2src tool for querying via XPath, and transformation via XSLT. In this demonstration a guide of these features is provided along with the use of XPath for constructing source-code queries and XSLT for conducting simple transformations.
引用
收藏
页码:516 / 519
页数:4
相关论文
共 50 条