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
来源
2013 29TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE (ICSM) | 2013年
基金
美国国家科学基金会;
关键词
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
相关论文
共 16 条
  • [1] Java']JavaML: a markup language for Java']Java source code
    Badros, GJ
    [J]. COMPUTER NETWORKS, 2000, 33 (1-6) : 159 - 177
  • [2] DMS®:: Program transformations for practical scalable software evolution
    Baxter, ID
    Pidgeon, C
    Mehlich, M
    [J]. ICSE 2004: 26TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, PROCEEDINGS, 2004, : 625 - 634
  • [3] Collard Michael L., 2010, 2010 IEEE 26th International Conference on Software Maintenance (ICSM 2010), DOI 10.1109/ICSM.2010.5609719
  • [4] Lightweight Transformation and Fact Extraction with the srcML Toolkit
    Collard, Michael L.
    Decker, Michael J.
    Maletic, Jonathan I.
    [J]. 11TH IEEE INTERNATIONAL WORKING CONFERENCE ON SOURCE CODE ANALYSIS AND MANIPULATION (SCAM 2011), 2011, : 173 - 184
  • [5] Collard ML, 2003, PROG COMPREHEN, P134
  • [6] Cordy JR, 2003, PROG COMPREHEN, P196
  • [7] Source transformation in software engineering using the TXL transformation system
    Cordy, JR
    Dean, TR
    Malton, AJ
    Schneider, KA
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 2002, 44 (13) : 827 - 837
  • [8] Relocating XML elements from preprocessed to unprocessed code
    Cox, A
    Clarke, C
    [J]. 10TH INTERNATIONAL WORKSHOP ON PROGRAM COMPREHENSION, PROCEEDINGS, 2002, : 229 - 238
  • [9] Dragan N., 2010, 2010 IEEE 26th International Conference on Software Maintenance (ICSM 2010), DOI 10.1109/ICSM.2010.5609703
  • [10] Klint P, 2003, PROG COMPREHEN, P2