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: Helmut Eller
Subject: Re: Make peg.el a built-in library?
Date: Sun, 10 Oct 2021 07:49:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

On Sat, Oct 09 2021, Stefan Monnier wrote:

>> For the general case, peg.el would need some form of proper tail calls.
>
> Maybe we could (re)use the tail-call elimination that I implemented for
> `named-let`.

This reminds me of a question I wanted to ask.  Suppose we want to
implement a LPeg-like virtual machine[*] as a dynamic module.  Is there
a reasonably efficient API to read a buffer's content?  Maybe something
like a FILE* stream backed by an Emacs buffer?

Helmut

[*] http://www.inf.puc-rio.br/~roberto/docs/ry08-4.pdf



reply via email to

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