Re: read in Pilog - SOLVED

2016-11-23 Thread CILz
Alex, you rock! Thanks very much. Eric Le 23/11/2016 à 20:23, Alexander Burger a écrit : : (be read (@X) (^ @X (read)) ) -> read : (? (read @A)) (foo bar) @A=(foo bar) -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: read in Pilog

2016-11-23 Thread Alexander Burger
On Wed, Nov 23, 2016 at 07:19:05PM +0100, CILz wrote: > Alex, thanks for being so patient! I came up with this: > > (be p_read () > (^ @ (read)) ) > > which looks to work so far ;-). > > However I wonder if there is a way to catch and unify the read value to a > variable. : (be read (@X)

Re: read in Pilog

2016-11-23 Thread CILz
Alex, thanks for being so patient! I came up with this: (be p_read () (^ @ (read)) ) which looks to work so far ;-). However I wonder if there is a way to catch and unify the read value to a variable. For example in Prolog the predicate 'read/1' allows to catch in 'read(Value)' where

Re: read in Pilog

2016-11-23 Thread Alexander Burger
Hi Eric, > Is there a way to have something similar to 'read' in Pilog? Here too some Lisp function must be called. However, it depends what you mean with "read": You can call the 'read' function which reads s-expressions in Lisp syntax (or lists of tokens when called with an additional