help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I step through this code?


From: jbranso
Subject: Re: How can I step through this code?
Date: Fri, 07 Oct 2022 18:45:36 +0000

October 5, 2022 11:06 PM, "jgart" <jgart@dismail.de> wrote:

> Hi
> 
> How can I step through this code?
> 

If you ever find out, then let me know!

I wish guile had a nice debugger like elisp.  :)

> (define-syntax do
> (syntax-rules ()
> ((do ((var init step ...) ...)
> (test expr ...)
> command ...)
> (letrec
> ((loop
> (lambda (var ...)
> (if test
> (begin
> (if #f #f)
> expr ...)
> (begin
> command
> ...
> (loop (do "step" var step ...)
> ...))))))
> (loop init ...)))
> ((do "step" x)
> x)
> ((do "step" x y)
> y)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]