首页> 外文会议> >Preserving the documentary structure of source code in language-based transformation tools
【24h】

Preserving the documentary structure of source code in language-based transformation tools

机译:在基于语言的转换工具中保留源代码的文档结构

获取原文

摘要

Language-based tools necessarily translate textual source code into grammar-based representations. During translation, tools such as compilers and analyzers are generally free to discard comments and white space, which have no impact on the code's formal meaning. Tools that produce transformed source code for human consumption enjoy no such freedom. Comments and white space are crucial to the comprehensibility and maintainability of source code and thus to its ultimate value. However, it is not always practical or desirable for transformation tools to replicate comments and white space in their entirety. An analysis of the documentary (as opposed to linguistic) structure of source code leads to a practical strategy for preserving its comprehensibility when processed by such tools.
机译:基于语言的工具必须将文本源代码转换为基于语法的表示形式。在翻译过程中,诸如编译器和分析器之类的工具通常可以随意丢弃注释和空白,而这不会影响代码的形式含义。产生供人类使用的转换源代码的工具没有这种自由。注释和空格对于源代码的可理解性和可维护性及其最终价值至关重要。但是,转换工具完全复制注释和空白并不总是实用或理想的。对源代码的文档性(相对于语言学而言)结构的分析导致了一种实用的策略,可以在使用此类工具进行处理时保持其可理解性。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号