![running swi prolog in visual prolog running swi prolog in visual prolog](https://prologsource.files.wordpress.com/2007/10/dreamprover800x627.gif)
Then you can run it like this (making sure you've chmod +x'd it first. Prolog appears to ignore it and carry on regardless. Make sure it's the very first line in the file. If, however, you're lazy and don't want to type prolog -f out every time you want to run your script, you can prefix your file with the following shebang: #!/usr/bin/prolog -f When you want to exit, the easiest way I've found is if you press CTRL + D. then you can interact with your Prolog knowledge bases as normal. for legal details.įor built-in help, use ?- help(Topic). SWI-Prolog comes with ABSOLUTELY NO WARRANTY. Welcome to SWI-Prolog (threaded, 64 bits, version 7.4.1)
![running swi prolog in visual prolog running swi prolog in visual prolog](https://i.ytimg.com/vi/ThCV1-x8UAw/maxresdefault.jpg)
#Running swi prolog in visual prolog install#
First, you need to install SWI-Prolog: sudo add-apt-repository ppa:swi-prolog/stable Running prolog scripts on linux isn't actually that hard. Anyway, since I'm re-discovering prolog, I had a teensy bit of trouble getting prolog to run one of my old scripts just now, so I thought I'd blog about it to save me the trouble next time :D I'm not sure whether it'll go anywhere, but I'm going to look into web crawling and parsing HTML. It's reminded me about how much I actually rather like (swi) prolog (I'm a bit nuts, I know :P), and I've decided that it would be splendid if I could get back into it a bit. I've been a bit busy this last 6 months, but I've got a holiday at the moment, and I've just received a lovely email about my learning prolog series. Hello! I hope you had a nice restful Easter.