首页> 外文会议>Reverse Engineering, 2002. Proceedings. Ninth Working Conference on >Program annotation in XML: a parse-tree based approach
【24h】

Program annotation in XML: a parse-tree based approach

机译:XML中的程序注释:基于解析树的方法

获取原文

摘要

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.
机译:在本文中,我们描述了一种可用于使用XML格式的语法标记来注释源代码的技术。这可以通过修改解析器生成器野牛以针对任意LALR语法发出这些标签来实现。我们还将讨论该技术的直接应用,即gcc编译器的可移植修改,它允许C,Objective C,C ++和Java程序的XML输出。尽管我们的方法基于解析树的表示,并且不具有与其他方法相同的语义丰富性,但是它确实具有语言独立的优势,因此可以在许多不同的领域中重复使用。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号