3Initialising and Managing a Prolog Project

Prolog text-books give you an overview of the Prolog language. The manual tells you what predicates are provided in the system and what they do. This chapter wants to explain how to run a project. There is no ultimate `right' way to do this. Over the years we developed some practice in this area and SWI-Prolog's commands are there to support this practice. This chapter describes the conventions and supporting commands.

The first two sections (section 3.1 and section 3.2 only require plain Prolog. The remainder discusses the use of the built-in graphical tools that require the XPCE graphical library installed on your system.


Section Index


3.1The project source-files
3.1.1File Names and Locations
3.1.1.1File Name Extensions
3.1.1.2Project Directories
3.1.1.3Sub-projects using search-paths
3.1.2Project Special Files
3.1.3International source files
3.2Using modules
3.3The test-edit-reload cycle
3.3.1Locating things to edit
3.3.2Editing and incremental compilation
3.4Using the PceEmacs built-in editor
3.4.1Activating PceEmacs
3.4.2Bluffing through PceEmacs
3.4.2.1Edit modes
3.4.2.2Frequently used editor commands
3.4.3Prolog Mode
3.4.3.1Finding your way around
3.5The Graphical Debugger
3.5.1Invoking the window-based debugger
3.6The Prolog Navigator
3.7Cross referencer
3.8Accessing the IDE from your program
3.9Summary of the iDE