Printing the source code of a predicate in Prolog

徘徊边缘 提交于 2019-12-06 09:17:33

Do you mean getting the same source code as produced by listing/1? If this is the case, you can simply use listing/1 in conjunction with with_output_to/2:

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