5 CG primitives

Introduction

Prolog+CG offers some primitives which make it easier to write useful CG-programs. A primitive is a piece of program code which has been written, and so can be "called" or used easily.

We look at two kinds of primitives:

A goal is a part of a rule or query which must be satisfied for the rule or query to succeed.

The goals which we discuss in this chapter are all provided by Prolog+CG. You do not have to do anything special for them to be available.


PrevLite: 4.6 Quiz: CG Syntax
NextLite: 5.1 CG goals

Prev: 4.6 Quiz: CG Syntax
Up: Part II: CGs
Next: 5.1 CG goals