arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.11897cs.PL
收藏

Tau Prolog:面向Web的Prolog解释器

Tau Prolog: A Prolog interpreter for the Web

José Antonio Riaza Valverde

AI总结:

本研究提出了一款用JavaScript实现的客户端Prolog解释器Tau Prolog,采用非阻塞回调设计适配Web环境,支持用Prolog操作DOM与处理浏览器事件,介绍了其架构、Web交互包及编程环境。

摘要:

Tau Prolog是一款完全用JavaScript实现的客户端Prolog解释器,旨在实现ISO Prolog标准。该解释器被开发为可在Node.js或浏览器中无缝使用,因此采用了非阻塞、基于回调的实现方式,以避免阻塞Web浏览器。Tau Prolog融合了JavaScript与Prolog的优势,允许程序员使用Prolog谓词处理浏览器事件、操作网页的文档对象模型(DOM)。本文介绍了Tau Prolog的架构及其用于Web交互的主要包,并展示了其编程环境。该工作正处于《Theory and Practice of Logic Programming》(TPLP)的审议阶段。

英文摘要:

Tau Prolog is a client-side Prolog interpreter fully implemented in JavaScript, which aims at implementing the ISO Prolog Standard. Tau Prolog has been developed to be used with either Node.js or a browser seamlessly, and therefore, it has been developed following a non-blocking, callback-based approach to avoid blocking web browsers. Taking the best from JavaScript and Prolog, Tau Prolog allows the programmer to handle browser events and manipulate the Document Object Model (DOM) of a web using Prolog predicates. In this paper we describe the architecture of Tau Prolog and its main packages for interacting with the Web, and we present its programming environment. Under consideration in Theory and Practice of Logic Programming (TPLP).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑