How to Learn Prolog
Prolog is a logic programming language--the name is short for "Programming Logic." The language isn't really meant be used to write word processors and web apps, like the majority of other programming languages, but rather in applications where advanced logic is required--particularly the fields of artificial intelligence and computational linguistics. Though Prolog, being so unlike other languages, is more difficult to learn than most, many online resources are available to help you, and you can, in fact, teach yourself.
Instructions
-
-
1
Go to one of the many in-depth Prolog guides available online. The References section of this article lists several available options. Each of them has a different approach, and contains some information the others don't, but any of them will give you a good introduction to the language.
-
2
Go to the W-Prolog Web site (see the link in this article under Resources). Scroll down to the "Start W-Prolog" button, and click it. This will open a Prolog interpreter in Java form. To use it, type the body of your program into the "Program:" textbox, and interact with the program by posing your queries in the "Query:" field, and entering them with the "Run Query" button. You'll find this little program very useful while trying to figure out how Prolog works.
-
-
3
Begin reading through the Prolog guide you have chosen. Read one page, and test all examples with W-Prolog. If there is anything you do not understand, read through the page once more. It is imperative that you comprehend everything you've been taught so far, before you go on. Read and work through the guide this way, building on your knowledge as you go. By the time you finish, you should have a good working knowledge of the Prolog language.
-
1