home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / prolog / 1664 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.1 KB  |  43 lines

  1. Newsgroups: comp.lang.prolog
  2. Path: sparky!uunet!mcsun!inesc.inesc.pt!dec4pt.puug.pt!unl!nntp!vp
  3. From: vp@fct.unl.pt (Vasco Pedro)
  4. Subject: Re: Help with C-Prolog, Please.
  5. In-Reply-To: micha@ecrc.de's message of Fri, 4 Sep 1992 12:15:44 GMT
  6. Message-ID: <VP.92Sep7120206@babel.fct.unl.pt>
  7. Sender: news@fct.unl.pt (USENET News System)
  8. Organization: Universidade Nova de Lisboa -- Lisbon, Portugal
  9. References: <1992Sep3.164303.8798@iccgcc.decnet.ab.com> <1992Sep4.121544.13871@ecrc.de>
  10. Date: Mon, 7 Sep 1992 12:02:06 GMT
  11. Lines: 30
  12.  
  13.  
  14. In article <1992Sep4.121544.13871@ecrc.de> micha@ecrc.de (Micha Meier) writes:
  15. > In article 8798@iccgcc.decnet.ab.com, baechtel@iccgcc.decnet.ab.com () writes:
  16. > >
  17. > >
  18. > >    In C-Prolog 1.5, is there anyway to get the name of a variable
  19. > >in a term?
  20.     .
  21.     .
  22.     .
  23.     .
  24. > [...] If you insist on
  25. > C-Prolog, use ROK's public domain parser read.pl and rdtok.pl which
  26. > gives you both the term and a list of variable/name pairs.
  27.  
  28. Or get c-prolog 1.6.edai:
  29.  
  30.     C Prolog version 1.6.edai
  31.     % Restoring file /usr/local/lib/prolog/startup-1.6.edai
  32.     yes
  33.     | ?- read(A,B).
  34.     |: A.
  35.     B = [ 'A' = _0]
  36.     A = _0
  37.     yes
  38.  
  39. Cheers,
  40. Vasco Pedro
  41. --
  42. .signature illegible
  43.