A searchable Prolog language description online [closed]

久未见 提交于 2019-12-17 19:17:02

问题


Is there a description of Prolog language (syntax and semantics) available online?

There are a lot of reference manuals for implementations. But neither of those is a language description. For example the SWI Prolog manual states

This manual does not describe the full syntax and semantics of Prolog.

And refers to a set of books printed on paper, published in the nineteen eighties. And to ISO standard which is for money and "should be available from my country's ISO representative" gibberish.


回答1:


The ISO standard is available for a very low price (currently USD 30 60) from the ANSI webstore as an INCITS document. There you also get the two corrigenda for free. See iso-prolog tag info for all current documents. Here is a comprehensive overview of all built-in predicates which includes Cor.1 and Cor.2.

If you want a printout version, the best is still to print above INCITS document yourself being aware that page 10 is missing (a page left intentionally blank) — otherwise odd pages are on the left side. The document is an A4 scan with two columns per page. The informal Annex A goes better in a separate binding. Instead, add the two corrigenda!

Alternatively, SAI sells hardcopies.




回答2:


You might want to use the following preprint of an
appendix of a book that is not the ISO core standard:

ISO Prolog: A Summary of the Draft Proposed Standard.
Michael A. Covington, 1993

http://www.uv.es/fbarber/prolog/isoprolog94_ps.Z
http://www.dropbox.com/s/kr1pbrfc1kqzdpq/isoprolog94_ps.Z

It is much shorter than the full ISO standard, but
it informally predates and covers almost the same.



来源:https://stackoverflow.com/questions/10914155/a-searchable-prolog-language-description-online

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!