[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.
- Re: Make peg.el a built-in library?, (continued)
Re: Make peg.el a built-in library?, Michael Heerdegen, 2021/10/08
Re: Make peg.el a built-in library?, Stefan Monnier, 2021/10/09
Re: Make peg.el a built-in library?, Eric Abrahamsen, 2021/10/09