How can I compile or run below these two files under gprolog or swi-prolog?
I have two files:
sample.pl:
foo ( arg1, arg2 ) :- !, a ( arg1 ).
test.pl:
a(1).
a(2).
a(3).
a(4).
a(5).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the “consult” command to load and compile files.
In order to load several files, you need to consult each file in its own command. These commands should do the trick for you.