Re: pilog on minipicolisp

2023-10-05 Thread C K Kashyap
Thanks Alex!

Once I included lib/pilog.l, the example friends.l at
https://picolisp-explored.com/learning-pilog-2-facts-rules-queries?source=more_series_bottom_blogs
worked!

I had to comment out the section below "# Basic Rules" though - even (be
repeat) simply causes a segfault.

Regards,
Kashyap

On Thu, Oct 5, 2023 at 2:03 AM Alexander Burger 
wrote:

> Hi Kashyap,
>
> > It looks like the pilog support in minipicolisp is perhaps different from
> > picolisp. Am I missing something? The "diff" file does not really call
> out
> > anything.
>
> Hmm, I did not look at MiniPicoLisp for a long time ... ;)
>
> > kashyap@DESKTOP-NICP8CC:~/s/embeddedpicolisp/miniPicoLisp/src$ ../pil
> > :  (be age (Paul 19) )
> > !? (clause CL)
> > clause -- Undefined
>
> 'clause' is defined in "mini/lib/pilog.l". "mini/pil" however loads only
> "lib/misc.l". This would explain it.
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe
>


Re: pilog on minipicolisp

2023-10-05 Thread Alexander Burger
Hi Kashyap,

> It looks like the pilog support in minipicolisp is perhaps different from
> picolisp. Am I missing something? The "diff" file does not really call out
> anything.

Hmm, I did not look at MiniPicoLisp for a long time ... ;)

> kashyap@DESKTOP-NICP8CC:~/s/embeddedpicolisp/miniPicoLisp/src$ ../pil
> :  (be age (Paul 19) )
> !? (clause CL)
> clause -- Undefined

'clause' is defined in "mini/lib/pilog.l". "mini/pil" however loads only
"lib/misc.l". This would explain it.

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe


pilog on minipicolisp

2023-10-04 Thread C K Kashyap
Hey Alex et al,

It looks like the pilog support in minipicolisp is perhaps different from
picolisp. Am I missing something? The "diff" file does not really call out
anything.

kashyap@DESKTOP-NICP8CC:~/s/embeddedpicolisp/miniPicoLisp/src$ ../pil
:  (be age (Paul 19) )
!? (clause CL)
clause -- Undefined
? (bye)

Regards,
Kashyap