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.