Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以对 SWI Prolog 的顶层进行修改?
是的,在 SWI-Prolog 中,顶层在 Prolog 中的 boot/toplevel.pl 中实现,您可以使用(副本)它作为扩展的起点。有时滚动自己的顶层很有用,例如,如果您想通过其他工具(如编辑器和编程环境)与编译器交互。滚动您自己的顶层的有用谓词是 atom_to_term/3 和 read_term/2,尤其是使用 variable_names 选项。
I'm an amateur so bear with me, but I've hit the end of my research with no solution for this.
This code complies fine but when I debug, it's apparent that the procedure