XML representations of program code

Hanson Prihantoro Putro, Inggriani Liem · 2011

In this paper, we propose to present program code forms as XML and developed associated XML definition (DTD). The XML representations include Grammar, Token Stream and Abstract Syntax Tree (AST) which are provided by their source code. We built a software library to help serializing the XML representations of these computer program artifacts. We also defined characteristics of process related to each object representation form in order to obtain the optimal process. We successfully tested the library for detecting code smell and got the result. From this work we found that XML is represented to portray source code in a single specification for any programming languages based on their grammar as well as token stream and AST elements.

Read the paper · More papers on PaperTik