Supporting document and data views of source code

Supporting document and data views of source code
复制标题

支持源代码的文档和数据视图

DOI:
10.1145/585058.585066
复制
发表时间:
2002
期刊:
Softw. Test. Verification Reliab.
影响因子:
--
通讯作者:
Andrian Marcus
Andrian Marcus
中科院分区:
--
文献类型:
--
作者:
Michael L. Collard;Jonathan I. Maletic;Andrian Marcus

文献摘要

被引文献

相似文献

本文描述了使用XML格式来存储和表示程序源代码。提出了一种新的XML应用程序srcML(源标记语言)。srcML假定源代码的文档视图,其中关于语法结构的信息分层在原始源代码文档之上。生成的多层文档有一个包含所有原始文本(和格式)的基础层。第二层是语法信息,它来源于编程语言的语法,用XML编码。这个多层视图既支持以原始形式创建和查看源代码,也支持使用XML技术(用于分析和转换源代码等任务)。尽管srcML针对的是源代码文档(特别是c++),但它也适用于其他编程语言和具有严格语法的语言。srcML代表了对以编译器为中心的源代码存储方式的背离,而采用了文档的观点,从而更好地支持现代软件系统中典型的大量源文档的操作和管理。
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.