DocumentCode
3081707
Title
Program annotation in XML: a parse-tree based approach
Author
Power, James F. ; Malloy, Brian A.
Author_Institution
Comput. Sci. Dept., Nat. Univ. of Ireland, Maynooth, Ireland
fYear
2002
fDate
2002
Firstpage
190
Lastpage
198
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.
Keywords
C++ language; Java; compiler generators; hypermedia markup languages; object-oriented programming; program diagnostics; C programs; C++ programs; Java programs; Objective C programs; XML; arbitrary LALR grammar; bison parser generator; parse-tree; portable gcc compiler modification; program annotation; source code annotation; syntactic tags; Application software; Computer science; Independent component analysis; Information analysis; Java; Program processors; Reverse engineering; Software tools; Visualization; XML;
fLanguage
English
Publisher
ieee
Conference_Titel
Reverse Engineering, 2002. Proceedings. Ninth Working Conference on
ISSN
1095-1350
Print_ISBN
0-7695-1799-4
Type
conf
DOI
10.1109/WCRE.2002.1173077
Filename
1173077
Link To Document