MURAL - Maynooth University Research Archive Library



    Program annotation in XML: a parse-tree based approach


    Power, James F. and Malloy, Brian A. (2002) Program annotation in XML: a parse-tree based approach. In: Ninth Working Conference on Reverse Engineering, 2002. Proceedings. IEEE, pp. 190-198. ISBN 0769517994

    [img]
    Preview
    Download (72kB) | Preview


    Share your research

    Twitter Facebook LinkedIn GooglePlus Email more...



    Add this article to your Mendeley library


    Abstract

    In this paper we describe a technique that can be used to annotate source code with syntactic tags in XML format. This is achieved by modifying the parser generator bison to emit these tags for an arbitrary LALR grammar. We also discuss an immediate application of this technique, a portable modification of the gcc compiler, that allows for XML output for C, Objective C, C++ and Java programs. While our approach is based on a representation of the parse-tree and does not have the same semantic richness as other approaches, it does have the advantage of being language independent, and thus re-usable in a number of different domains.

    Item Type: Book Section
    Additional Information: This is the preprint version of the published chapter, which is available at DOI: 10.1109/WCRE.2002.1173077
    Keywords: Program annotation; XML; parse-tree based approach; source code; syntactic tags;
    Academic Unit: Faculty of Science and Engineering > Computer Science
    Item ID: 6441
    Identification Number: https://doi.org/10.1109/WCRE.2002.1173077
    Depositing User: Dr. James Power
    Date Deposited: 02 Oct 2015 15:55
    Publisher: IEEE
    Refereed: Yes
    URI:
    Use Licence: This item is available under a Creative Commons Attribution Non Commercial Share Alike Licence (CC BY-NC-SA). Details of this licence are available here

    Repository Staff Only(login required)

    View Item Item control page

    Downloads

    Downloads per month over past year

    Origin of downloads