users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quintus to Gnu Prolog conversion


From: Thierry Martinez
Subject: Re: Quintus to Gnu Prolog conversion
Date: Wed, 23 Apr 2008 17:44:18 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]