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: Sylvain Soliman
Subject: Re: Quintus to Gnu Prolog conversion
Date: Wed, 23 Apr 2008 17:46:32 +0200
User-agent: Mutt/1.5.17 (2007-11-01)

* Pauline Kra <address@hidden>:
> chkforpuncttag(W,_) 
> :-member(W,['/','<','>','-','[','{','_','+','=','|','\','?']),!.

You need to escape the \ -> \\

> get_tagsentence(['%','%'|Rest],Sent,Remainder) :-
> 
>      get_tagsentence(Rest,_,Rem),       % line 78
> 
>      get_tagsentence(Rem,Sent,Remainder).
> 
> get_tagsentence([X,.,Y,Z|Rest],[X,.],[Y,Z|Rest]) :-   % break up "140. 3+"

This seems to be line 78 (and not the one marked as such)

>      number(X), number(Y), Z = '+', !.  % Y belongs to '+' for new sentence
> 
> get_tagsentence([X,.,Y,Z|Rest],[N|SRest],LRest) :-   % line 82

If you want the character 'dot' you need to enclose it in single quotes 
-> '.' 

Best,

        Sylvain

-- 
Sylvain Soliman <address@hidden>         Tel: (+33) 1 39635761
INRIA Paris-Rocquencourt - Equipe CONTRAINTES      Fax: (+33) 1 39635469
Domaine de Voluceau, Rocquencourt, BP 105   GnuPG Public Key: 0x0F53AF99
78153 LE CHESNAY CEDEX - FRANCE    http://contraintes.inria.fr/~soliman/

Attachment: pgpAUnOVXciYZ.pgp
Description: PGP signature


reply via email to

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