Re: Quintus to Gnu Prolog conversion

Sylvain Soliman <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
* Pauline Kra <[email protected]>:
> 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 <[email protected]>         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/

_______________________________________________
Users-prolog mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/users-prolog
signature.asc (application/pgp-signature, 186 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iD8DBQFID1nYu6JwgQ9Tr5kRAt2aAJ9NyJXzAhuOP9atqzB+4QaIwSx+RgCcDztJ
vf989uM2lMEBlykTxwieNPc=
=zkiO
-----END PGP SIGNATURE-----
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.