CS 3304 Prolog Resources

SUGGESTED STEPS FOR GETTING SCHEME

  1. Follow the link SWI-Prolog download page.

  2. Choose an appropriate operating system. Mr. Rao chose Win32 binary
    "Self-installing executable of version 3.2.8 for Windows 95, 98 and Windows-NT"; you might choose a Linux version. The remaining instructions are for the Windows install. The instructor or the GTA can help with the Linux install during office hours.

  3. Save the file w32pl328.exe to the temporary folder (C:\Temp).

  4. Execute w32pl328.exe and put the installation proceeds in folder C:\Prolog.

  5. Open readme.txt and set the environment variables as indicated under the section Further Installation.

  6. From the Prolog page, download a prolog program (e.g., agatha_christie.pro).

  7. Rename agatha_christie.pro to agatha_christie.pl (change the extension from .pro to .pl).

  8. Launch PLWIN.EXE, a window opens with the Prolog prompt.

  9. At the Prolog prompt, type '[agatha_christie].' --- without single quotes but with the period at the end.

  10. If the compilation is indicated as successful, then your installation is also successful.

  11. Send email to heath@cs.vt.edu if you find errors in this procedure or if you have serious difficulty installing Scheme by this procedure. You may prefer to see the instructor or the GTA during office hours.



THESE SAMPLE PROGRAMS ARE PROVIDED FOR YOUR CONVENIENCE IN TESTING YOUR INSTALLATION OF PROLOG

Sample Programs
LanguageName File
Prologecho_input echo_input.pro
PrologTokenizing Words word_tokenizer.pro
PrologTokenizing Expressions expr_tokenizer.pro
PrologMurder Logic agatha_christie.pro
PrologTennis Logic tennis.pro
Prolog3 Children 3children.pro
Prolog Lots of Tutorial Samples Samples

copyright © 2000 Virginia Tech, ALL RIGHTS RESERVED
Last modified: October 25, 2000, 08:11:42 EDT, by Lenwood S. Heath <heath@cs.vt.edu>