aiprolog -- A simple Prolog shell using AI::Prolog.
usage: aiprolog <optional prolog program name>
aiprolog is a simple prolog shell using AI::Prolog as the backend.
aiprolog
See the documentation for more detail on the Prolog features that AI::Prolog currently accepts.
Commands specific to aiprolog:
"% more" -- enables prompting for more results (default) "% no more" -- disables prompting for more results "% nomore" -- same as "no more" "% halt" -- stops the shell "% help" -- display this message
Note that the percent sign must preceed the command. The percent sign indicates a Prolog comment. Without that, aiprolog will think you're trying to execute a prolog command.
aiprolog-specific commands are case-insensitive.
If you are hoping to use this to play the bundled "Spider" game, I recommend the following:
aiprolog location/of/spider.pro
At the prompt:
?- % no more
That disables the "More? (y/N)" query which gets very annoying while playing the game, though it's useful when you really want to program.
Then issue the "start" command (defined in "spider.pro").
?- start.
To install AI::Prolog, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AI::Prolog
CPAN shell
perl -MCPAN -e shell install AI::Prolog
For more information on module installation, please visit the detailed CPAN module installation guide.