【问题标题】:Prolog, listing/1, Built-in System Predicates, SWI-Prolog 7.4.2Prolog,listing/1,内置系统谓词,SWI-Prolog 7.4.2
【发布时间】:2017-06-24 16:06:09
【问题描述】:

我正在尝试使用 SWI-Prolog 7.4.2 获取一些内置谓词的定义。具体来说,split_string/4

explain/1 返回:

system:split_string/4 is a built-in predicate Summary: ``Break a string into substrings'' true.

listing/1 返回:

Foreign: system:split_string/4 true.

我检查了 System.pl 文件,但似乎找不到定义。这可能吗?

【问题讨论】:

    标签: prolog swi-prolog


    【解决方案1】:

    SWI-Prolog 是基于 C 的。在 github 中查找 *.c,更具体地说,在 this source 中查找。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-11
      • 2011-08-21
      • 2012-04-06
      • 2022-10-13
      • 1970-01-01
      相关资源
      最近更新 更多