首页> 外文会议>Working Conference on Reverse Engineering >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格式的语法标签注释源代码的技术。这是通过修改解析器生成器野牛来实现这些标签来实现的,为任意LAL语法发出这些标签,我们还讨论了这种技术的立即应用了GCC编译器的便携式修改;这允许C,目标C,C ++和Java程序的XML输出。虽然我们的方法基于解析树的表示,但与其他方法没有相同的语义丰富,但它确实具有独立的语言的优点,因此在许多不同的域中重新使用。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号