Creating a project/writing a program
Versions
Author
Projects consist of one or more files. The creation of a project that contains one file is described. A very simple program is entered in the editor pane and that program is executed.
SICStus Prolog 4.2.0
Peter Hancox
Eclipse 3.6.1 (helios)

School of Computer Science
University of Birmingham

SPIDER 0.0.4
24 September 2012

     

  1. Start Eclipse
  2. Select the Eclipse IDE

     

  3. Set a Workspace
  4. The Workspace is where you will store your files. In this example, a Workspace is set up for a Tutorial sheet.

    Select a Workspace

     

  5. Create a project (part 1)
  6. From the File menu, select "New" then "Other..."

    Create a project

     

  7. Create a project (part 2)
  8. Type "prolog" in the filter box, then select "Prolog Project"

    Create a project

     

  9. Enter a project name
  10. Enter a project name

     

  11. Open the Prolog perspective
  12. If Eclipse is not already in SICStus Prolog "mode", it will ask if you want to be in the SICStus Development perspective. The answer is "Yes".

    Into SICStus perspective

     

  13. Creating a file (part 1)
  14. From the File menu, select "New" then "Other..."

    Create a project

     

  15. Creating a file (part 2)
  16. Type "prolog" in the filter box, then select "Prolog File"

    Create a file

     

  17. Creating a file (part 2)
  18. Create a file

     

  19. Write a program in the editor pane
  20. Write a program

     

  21. Consult or compile the program
  22. Consult the program

     

  23. Start Prolog
  24. If there is not a Prolog pane, you will be asked if you want to start Prolog

    Start Prolog

     

  25. Entering a query
  26. If there are no errors in your program, you can enter a query in the Prolog pane.

    Executing a program

     

  27. Exiting Eclipse
  28. When you have finished, simply select "Exit" from the File menu.

    Exit Eclipse