Adventure in Prolog


Contents

Preface

Where to Find a Prolog

1 Getting Started

Jumping In
Logic Programming
Jargon

2 Facts

Nani Search
Exercises

3 Simple Queries

How Queries Work
Exercises

4 Compound Queries

Built-in Predicates
Exercises

5 Rules

How Rules Work
Using Rules
Exercises

6 Arithmetic

Exercises

7 Managing Data

Exercises

8 Recursion

How Recursion Works                    
Pragmatics
Exercises
9 Data Structures
Exercises

10 Unification

Exercises

11 Lists

Using the List Utilities
Exercises

12 Operators

Exercises

13 Cut

Using the Cut
Exercises

14 Control Structures

Recursive Control Loop
Tail Recursion
Exercises

15 Natural Language

Difference Lists
Natural Language Front End
Definite Clause Grammar
Reading Sentences
Exercises

Appendix

Nani Search
Family
Custord
Birds

Index


Published by:

Amzi! inc.
5861 Greentree Road
Lebanon, OH 45036 U.S.A.

phone +1-513-425-8050
fax +1-513-425-8025
e-mail info@amzi.com
web www.amzi.com

Copyright ©1990,1996-1997 by Amzi! inc. All Rights Reserved.

This document ("Work") is protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. You may use and distribute copies of this Work provided each copy of the Work is a true and complete copy, including all copyright and trademark notices, and each copy is accompanied by a copy of this notice. You may not distribute copies of this Work for profit either on a standalone basis or included as part of your own product or work without written permission from Amzi! You may charge a NOMINAL media or download fee. You may not include this Work as part of your own works. You may not rename, edit or create any derivative works from this Work. Contact Amzi! for additional licensing arrangements.

Amzi! is a registered trademark and Logic Server, Active Prolog Tutor, Adventure in Prolog and the flying squirrel logo are trademarks of Amzi! inc.

Last Updated: February 1997



Copyright ©1990,1996-97 Amzi! inc. All Rights Reserved