Program annotation in XML: A parse-tree based approach

19Citations
Citations of this article
11Readers
Mendeley users who have this article in their library.
Get full text

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.

Cite

CITATION STYLE

APA

Power, J. F., & Malloy, B. A. (2002). Program annotation in XML: A parse-tree based approach. In Proceedings - Working Conference on Reverse Engineering, WCRE (Vol. 2002-January, pp. 190–198). IEEE Computer Society. https://doi.org/10.1109/WCRE.2002.1173077

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free