Supporting document and data views of source code

  • Authors:
  • Michael L. Collard;Jonathan I. Maletic;Andrian Marcus

  • Affiliations:
  • Kent State University, Kent, OH;Kent State University, Kent, OH;Kent State University, Kent, OH

  • Venue:
  • Proceedings of the 2002 ACM symposium on Document engineering
  • Year:
  • 2002

Quantified Score

Hi-index 0.00

Visualization

Abstract

The paper describes the use of an XML format to store and represent program source code. A new XML application, srcML (SouRCe Markup Language), is presented. srcML presumes a document view of source code where information about the syntactic structure is layered over the original source code document. The resultant multi-layered document has a base layer of all the original text (and formatting). The second layer is the syntactic information, derived from the grammar of the programming language, and is encoded in XML. This multi-layered view supports both the creation and viewing of the source code in its original form and the use of XML technologies (for tasks such as analysis and transformation of the source). Although directed at source code documents, (particularly C++) srcML is also applicable to other programming languages and to languages with a strict syntax. srcML represents a departure from the compiler centric manner in which source code is commonly stored, instead a document point of view is taken thus better supporting the manipulation and management of the large numbers of source documents typical in modern software systems.