In article <1994Jun28.090330.2727@cm.cf.ac.uk>, ruvan@clu.cf.ac.uk (Ruvan Weerasinghe) writes:
> Hi,
> One of my calls to Pop-11 from Prolog contains an argument
> that is a complex term of the form a(b(c)). I only need Pop-11 to
> store it as it is, but of course because it thinks that the term is a
> function call it produces an error message - <undef b> or somesuch.
> How do I `quote' it to get round this? (I tried prolog_eval(quote(Term))
> too w/o success).
>
> Thanks for your help.
>
> Ruvan.
>
> --
> ----------------------------------------------------------------------------
> <ruvan@clu.cf.ac.uk> Computational Linguistics Unit,
> Tel : 0222 874000 ext. 5310 University of Wales College of Cardiff,
> Fax : 0222 874293 Cardiff CF1 3EU, UK.
Presumably when you are calling pop11 in order to store a prolog term
you are calling a pop11 procedure which stores the term. Assuming this
procedure is called 'store', and you wish to store the term a(b(c)), then
the following should work (I have tried it):
... prolog_eval(store(quote(a(b(c))))).
Hope this helps.
Philip Mortimer, Applications Programmer, CSD, Southbank University, London
|