Pauline Kra:
> chkforpuncttag(W,_) :-
> member(W,['/','<','>','-','[','{','_','+','=','|','\','?']),!.
You should replace '\' by '\\'. (In GNU Prolog, "\" introduces an
escape sequence.)
> number(X), number(Y), Z = '+', !. % Y belongs to '+' for new sentence
You should replace '+' by ('+'). (The parser of GNU Prolog is happier
when atoms which match operator names are bracketed.)
> Z \= '+', % break up "140. 3+"
You should replace '+' by ('+').
--
Thierry.
_______________________________________________
Users-prolog mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/users-prolog