next up previous
Next: Example Up: Comparison between Pascal and Previous: PASCAL

PROLOG

PASCAL programs contain a series of INSTRUCTIONS given to the computer as PROCEDURES to perform. The order of doing things is SPECIFIED and a number of ACTIONS performed as a consequence.

PROLOG programs contain a set of FACTS and RULES. Aspects of the problem which are TRUE or FALSE are described (defined), rather than the method to achieve a RESULT.

For instance :

	likes(omer, donuts) 
	likes(paul, neighbours)



Omer F Rana
Mon Jan 27 17:05:43 GMT 1997