Program annotation in XML: A parse-tree based approach

  • Power J
  • Malloy B
  • 9


    Mendeley users who have this article in their library.
  • 18


    Citations of this article.


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.

Author-supplied keywords

  • Application software
  • Computer science
  • Independent component analysis
  • Information analysis
  • Java
  • Program processors
  • Reverse engineering
  • Software tools
  • Visualization
  • XML

Get free article suggestions today

Mendeley saves you time finding and organizing research

Sign up here
Already have an account ?Sign in

Find this document


Cite this document

Choose a citation style from the tabs below

Save time finding and organizing research with Mendeley

Sign up for free