The usual command line prompt for Prolog is something similar to: ? — This implies that Prolog is waiting to be asked a question about its database. The examples in this book will include this prompt for convenience, so that they relate more closely to what can be seen on the screen. If an example does not contain this prompt, it is usually because an assertion is being made, and not a query. In this case, use the command consult or a text editor, as explained in the following pages.
KeywordsLogical Connective Text Editor Operator Precedence Prolog Program Recursive Rule
Unable to display preview. Download preview PDF.