How to load a swi-prolog program
I have a power Macintosh G5 working with Panther (MacOS 10.3).
I have installed SWI-Prolog, and saved a short Prolog program (named prog1.pl) in the home (named ab ).
In the Terminal, I go to /user/local/bin/swipl
I use consult
and after that I don't know how to load my program
Here a copy of the screen.
----------------------------------------------------------
Last login: Mon Sep 19 15:02:10 on ttyp1
Welcome to Darwin!
tok69-5-82-235-150-51:~ ab$ ls
Applications Enregistrement Music Sites musique
Desktop Library Pictures TP1.pl prog1.pl
Documents Movies Public
tok69-5-82-235-150-51:~ ab$ cd /usr/local/bin
tok69-5-82-235-150-51:/usr/local/bin ab$ swipl
Welcome to SWI-Prolog (Multi-threaded, Version 5.4.7)
Copyright (c) 1990-2003 University of Amsterdam.
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
Please visit http://www.swi-prolog.org for details.
For help, use ?- help(Topic). or ?- apropos(Word).
?- consult('
-------------------------------------------------
How to load "prg1.pl" ?
I need help.
Thanks in advance
luisa
I have installed SWI-Prolog, and saved a short Prolog program (named prog1.pl) in the home (named ab ).
In the Terminal, I go to /user/local/bin/swipl
I use consult
and after that I don't know how to load my program
Here a copy of the screen.
----------------------------------------------------------
Last login: Mon Sep 19 15:02:10 on ttyp1
Welcome to Darwin!
tok69-5-82-235-150-51:~ ab$ ls
Applications Enregistrement Music Sites musique
Desktop Library Pictures TP1.pl prog1.pl
Documents Movies Public
tok69-5-82-235-150-51:~ ab$ cd /usr/local/bin
tok69-5-82-235-150-51:/usr/local/bin ab$ swipl
Welcome to SWI-Prolog (Multi-threaded, Version 5.4.7)
Copyright (c) 1990-2003 University of Amsterdam.
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
Please visit http://www.swi-prolog.org for details.
For help, use ?- help(Topic). or ?- apropos(Word).
?- consult('
-------------------------------------------------
How to load "prg1.pl" ?
I need help.
Thanks in advance
luisa