SWI-Prolog MA410 Windows User Manual

Prolog for Windows Manual mainly introduces how to use SWI-Prolog under Windows system


SWI-Prolog MA410 Windows User Manual - cover page
Brand
SWI-Prolog
Category
Other
Document type
User Manual
Language
English
Pages
7
File format
PDF
File size
177 KB
Published
18 October, 2023
Updated
18 October, 2023
MD5 checksum
352F28C1FB3C85EC7B36977EF21F4C44

About this manual

This manual guides users through installing and using SWI-Prolog on Windows, including starting the console, loading programs, and using commands like consult and edit. It includes practical examples such as defining family relations and querying them with Prolog facts and rules.

The guide also explains how to navigate the SWI-Prolog interface, use menu commands, and manage files. It covers basic Prolog syntax, comments, and how to define predicates like mother and father based on gender attributes.

What's inside

  • Starting Prolog
  • Using Prolog Commands
  • Example Family Tree Program
  • Editing and Consulting Files

Frequently asked questions

What is the command to load a Prolog file?

Use consult(File) to load a source file; the .pl extension can be omitted.

How do I define a mother predicate in Prolog?

Use mother(X,Y) :- parent(X, Y), female(X).

Download PDF (177 KB)