Since be new to Prolog, these days I was doing the exercises following the book Adventure in Prolog.
But now I meet with an newbie question, how to input while using 'read'.
X = a ;
Y = b ; . ;
test a test.
While executing: read_term$/3
Read buffer: test a **NEAR HERE** test.
File: user_in Line 8
- read_term/3;- catch/3;+ catch/3;--- top of stack ---
Since Adventure in Prolog is my first Prolog book, I even don't know how to input while using read.
An 'Enter' can not finish the input, so I tries a '.', and it seems work.
When I tries ';', more input lines seems appeared, and only double '.' can end the input.
And when I tries to add a space between the words I inputed, it reports syntax_error 407.
What cause the problem? And by the way, where I can find a complete introduce for all the Amzi! Prolog Builtin Predicates?