Switching modes in Prolog on the Windows command line
In many Prolog systems, such as SICStus 4, you can enter a fact end_of_file.
to complete the consultation. This fact will not be considered, it only serves to indicate the end.
(Warning: I am not a frequent user of Winds. That is, I only have rdesktop for this activity.)
If you ever need to define a fact end_of_file.
in your program, write end_of_file :- true.
instead.
If you enter end_of_file.
as a query at the top level, many Prolog systems stop. You can work around this by typing true,end_of_file.
instead.
This slightly bizarre behavior is by no means standardized.
source to share