在LANA中注释用户集程序?
Annotating Answer-Set Programs in LANA?
摘要:
虽然过去的研究在回答集编程(ASP)主要集中在理论,ASP求解器技术,和应用程序,目前的工作本身的背景下,一个相当最近的研究趋势:开发支持ASP。特别是,我们建议增加答案集程序与额外的元信息制定一个专用的注释语言,称为LANA。这种语言允许将规则分组为连贯的块,并指定语言签名、类型、前置和后置条件,以及这些块的单元测试。虽然这些注释对ASP求解器是不可见的,因为它们采取程序注释的形式,但它们可以被工具解释为文档,测试和验证目的,以及通过实现语法检查或代码完成功能来消除常见编程错误的来源。为了证明它的多功能性,我们介绍了两个这样的工具,即(一)ASPDOC,用于生成一个HTML文档的基础上的注释信息的程序,和(二)ASPUNIT,用于运行和监控程序块上的单元测试。在基于Eclipse的ASP集成开发环境SeaLion系统中,也对LANA进行了开发。逻辑程序设计理论与实践Theory and Practice of Logic Programming
英文摘要:
While past research in answer-set programming (ASP) mainly focused on theory, ASP solver technology, and applications, the present work situates itself in the context of a quite recent research trend: development support for ASP. In particular, we propose to augment answer-set programs with additional meta-information formulated in a dedicated annotation language, called LANA. This language allows the grouping of rules into coherent blocks and to specify language signatures, types, pre- and postconditions, as well as unit tests for such blocks. While these annotations are invisible to an ASP solver, as they take the form of program comments, they can be interpreted by tools for documentation, testing, and verification purposes, as well as to eliminate sources of common programming errors by realising syntax checking or code completion features. To demonstrate its versatility, we introduce two such tools, viz. (i) ASPDOC, for generating an HTML documentation for a program based on the annotated information, and (ii) ASPUNIT, for running and monitoring unit tests on program blocks. LANA is also exploited in the SeaLion system, an integrated development environment for ASP based on Eclipse. To appear in Theory and Practice of Logic Programming
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。