首页> 外文OA文献 >A system for automatically generating documentation for (C)LP programs
【2h】

A system for automatically generating documentation for (C)LP programs

机译:自动生成(C)LP程序文档的系统

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

We describe lpdoc, a tool which generates documentation manuals automatically from one or more logic program source files, written in ISO-Prolog, Ciao, and other (C)LP languages. It is particularly useful for documenting library modules, for which it automatically generates a rich description of the module interface. However, it can also be used quite successfully to document full applications. A fundamental advantage of using lpdoc is that it helps maintaining a true correspondence between the program and its documentation, and also identifying precisely to what version of the program a given printed manual corresponds. The quality of the documentation generated can be greatly enhanced by including within the program text assertions (declarations with types, modes, etc.) for the predicates in the program, and machine-readable comments. One of the main novelties of lpdoc is that these assertions and comments are written using the Ciao system assertion language, which is also the language of communication between the compiler and the user and between the components of the compiler. This allows a significant synergy among specification, documentation, optimization, etc. A simple compatibility library allows conventional (C)LP systems to ignore these assertions and comments and treat normally programs documented in this way. The documentation can be generated in many formats including texinfo, dvi, ps, pdf, info, html/css, Unix nroff/man, Windows help, etc., and can include bibliographic citations and images. lpdoc can also generate “man” pages (Unix man page format), nicely formatted plain ascii “readme” files, installation scripts useful when the manuals are included in software distributions, brief descriptions in html/css or info formats suitable for inclusion in on-line indices of manuals, and even complete WWW and info sites containing on-line catalogs of documents and software distributions. The lpdoc manual, all other Ciao system manuals, and parts of this paper are generated by lpdoc.
机译:我们介绍了lpdoc,该工具可从一个或多个以ISO-Prolog,Ciao和其他(C)LP语言编写的逻辑程序源文件中自动生成文档手册。它对于文档库模块特别有用,因为它会自动生成模块接口的丰富描述。但是,它也可以非常成功地用于记录完整的应用程序。使用lpdoc的一个基本优点是,它有助于维护程序与其文档之间的真实对应关系,并且还可以准确地确定给定印刷手册与程序的哪个版本相对应。通过在程序中包含程序中的谓词的断言(带有类型,模式等的声明)和机器可读的注释,可以大大提高生成的文档的质量。 lpdoc的主要新颖性之一就是这些声明和注释是使用Ciao系统声明语言编写的,该语言也是编译器与用户之间以及编译器组件之间的通信语言。这样可以在规范,文档,优化等方面实现显着的协同作用。简单的兼容性库允许常规(C)LP系统忽略这些声明和注释,并以这种方式对待通常记录的程序。该文档可以多种格式生成,包括texinfo,dvi,ps,pdf,info,html / css,Unix nroff / man,Windows帮助等,并且可以包括书目引文和图像。 lpdoc还可以生成“手册”页面(Unix手册页格式),格式良好的纯ascii“自述文件”,在软件发行版中包含手册时有用的安装脚本,html / css中的简短说明或适合包含在以下文档中的信息格式手册的在线索引,甚至包含文档和软件分发的在线目录的完整WWW和信息站点。 lpdoc手册,所有其他Ciao系统手册以及本文的某些部分均由lpdoc生成。

著录项

  • 作者

    Hermenegildo Manuel V.;

  • 作者单位
  • 年度 2000
  • 总页数
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类

相似文献

  • 外文文献
  • 中文文献
  • 专利
代理获取

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号