[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to select a list of trees in a ctedit and pass it to Typol ?
- Subject: Re: how to select a list of trees in a ctedit and pass it to Typol ?
- From: td@babar.inria.fr (Thierry Despeyroux)
- Date: 24 Feb 92 13:24:21 GMT
In article <13790@sophia.inria.fr>, cattel@comte.uucp (Cattel) writes:
|> Is it possible to select a list in a ctedit and to work on it ( not only its
|> first son ) in a Typol pgm ?
Yes, but Typol programs acts only on VTP trees. The list of trees returned by
{...}:tree+ is not a VTP tree. You must construct a VTP tree, using a proper list
operator from the abstract syntax of your formalism.
Something like
(let ...
(tree (apply '{tree}:make <operator> (send 'tree+ (...))))
)
where <operator> is something like
({name}:operator 'exp_s ({name}:formalism 'your_language))
--
Send contributions 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 |
+---------------------------------------------------------------------------+