The Community for Technology Leaders
2013 20th Working Conference on Reverse Engineering (WCRE) (2002)
Richmond, Virginia
Oct. 29, 2002 to Nov. 1, 2002
ISBN: 0-7695-1799-4
pp: 0190
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.
B.A. Malloy, J.F. Power, "Program Annotation in XML: A Parse-Tree Based Approach", 2013 20th Working Conference on Reverse Engineering (WCRE), vol. 00, no. , pp. 0190, 2002, doi:10.1109/WCRE.2002.1173077
95 ms
(Ver 3.3 (11022016))