Re: Quintus to Gnu Prolog conversion

Thierry Martinez <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Organization INRIA Paris-Rocquencourt
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.