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

Re: (No Subject)



|>   1) How to manage quotes, which are already terminals of Typol 
|>      syntax?

Use a double " as in concat("""","foo",Y)  ->the value of Y is "foo

|>   2) How to append quotes to X?

import concat(string, string, string), concat(string, string, string, string)
   from prolog;


concat(A,B,C) : C is the concatenation of A and B
concat(A,B,C,D) : D is the concatenation of A, B and C

ex: concat("""",X,"""",Y)

Thierry
 
-- 
Send contributions and compliments to centaur@sophia.inria.fr. Registration
and administrative matters should be sent to centaur-request@sophia.inria.fr.
+---------------------------------------------------------------------------+
|     Thierry Despeyroux      | email: Thierry.Despeyroux@sophia.inria.fr   |
| I.N.R.I.A. Sophia-Antipolis | phone: +33 93 65 77 07 fax: +33 93 65 77 66 |
+---------------------------------------------------------------------------+