计算机科学 ›› 2012, Vol. 39 ›› Issue (5): 114-116.

• 软件工程 • 上一篇    下一篇

Godel语言延迟声明语句的语义及其实现方法

曹炳义,赵致琢   

  1. (厦门大学计算机科学系 厦门361005)
  • 出版日期:2018-11-16 发布日期:2018-11-16

Semantics of Delay Declaration in Logic Programming Language Godel and its Implementation

  • Online:2018-11-16 Published:2018-11-16

摘要: Godel语言因语言成份复杂而缺乏严格的语义基础和成熟的编译器,因此推出后它一直发展缓慢。对此采用进化代数描述了其主要语言成分延迟声明语句的过程性语义,然后介绍了依据该语义的具体实现方法并给出运行流程图和c语言描述。最后通过一个例子来具体说明延迟计算在基于扩展Warren机的编译系统中的执行情况。实验结果表明了其可行性。

关键词: Godel语言,延迟计算,进化代数,过程性语义,扩展Warren机

Abstract: The logic programming language Godel is developed slowly since its appearance due to its complex language components and the lack of rigorous semantic foundation and mature compilers. In this paper, we firstly described the procedural semantics of its delay computation using evolving algebra. Then the specific implementation methods were introduced with a flow chart and a description by C language. Finally the execution of delay computation in the compiler based on extended Warren's Abstract Machine was illustrated. Its feasibility was proved by the implementation.

Key words: Programming language Uodel,Delay computation, Evolving algebra, Procedural semantics, Extended WAM

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!