[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Parsing library recommendation
From: |
Eric Abrahamsen |
Subject: |
Re: Parsing library recommendation |
Date: |
Tue, 05 Mar 2019 11:05:56 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Evgeny Zajcev <address@hidden> writes:
>> Everything now is written with regexps, which can be good for
>> skipping over cruft and targeting expected strings, but they
>> fall apart fairly easily. It would be nice to have a more
>> stable parsing framework that can handle these oddities (though
>> I know they're all built on regexps, eventually). It would be
>> nice to have something that could be used for IMAP servers,
>> etc.
>
> PEG might be what you want, there is implementation for Emacs -
> https://github.com/ellerh/peg.el/blob/master/peg.el
Thanks, I wasn't aware of that library! It looks like it would be fairly
similar to parsec.el in usage. Parsec has the advantage that it's in
ELPA :)