emacs-devel
[Top][All Lists]
Advanced

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

Re: Make peg.el a built-in library?


From: Michael Heerdegen
Subject: Re: Make peg.el a built-in library?
Date: Thu, 14 Oct 2021 12:25:30 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Helmut Eller <eller.helmut@gmail.com> writes:

> Self-recursion can sometimes be rewritten using *.  In peg.el, * is
> "inlined" and so doesn't run out of stack:
>
>  (rule   [maches what I want])
>  (search (and (* (not rule) (any)) rule))
>
> It's kinda like rewriting a self tail call to a while loop.

Yes, that works well in my case, thanks.

Michael.



reply via email to

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