[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Make peg.el a built-in library?
From: |
Ihor Radchenko |
Subject: |
Re: Make peg.el a built-in library? |
Date: |
Tue, 08 Nov 2022 08:51:05 +0000 |
Helmut Eller <eller.helmut@gmail.com> writes:
> Isn't Tree-sitter a better alternative to peg.el? I've never used
> Tree-sitter, but from the few things I read about it, it seems to be
> more "declarative", more efficient, and actually supported in core.
Tree-sitter is a massive overkill when you need to parse something just
slightly more complex than can be done via regexps.
Tree-sitter requires a whole separate .so file with compiled parser +
buffer setup.
Bovine is a bit easier to use (you can, at least, define grammar in
Elisp), but you also need to setup parser in a separate buffer with
existing documentation being even more limited compared to peg.el.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
Re: Make peg.el a built-in library?, Ihor Radchenko, 2022/11/08