[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rx.el sexp regexp syntax
From: |
Eric Abrahamsen |
Subject: |
Re: rx.el sexp regexp syntax |
Date: |
Sun, 03 Jun 2018 08:15:01 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Helmut Eller <address@hidden> writes:
> On Sat, Jun 02 2018, Stefan Monnier wrote:
>
>>> I played around with this, but it might not be possible to achieve
>>> enough of the conveniences to make it worthwhile.
>>
>> I think we'd need to extend the reader to provide a specialized syntax,
>> which in turns means changing elisp-mode, etc...
>> I think it's a fairly large amount of work, for fairly little benefit in
>> the end compared to what we can get today.
>
> Maybe we could start with an ordinary macro, e.g. (pcre "(a|b)"), which
> could translate Perl/Python regexp syntax to Emacs regexp syntax.
I made something like that, but the only advantage is your example
above: open and close parentheses, and the vertical bar. Everything else
still has to be double-backslashed. It feels inconsistent, and isn't
that much of a benefit...
- Re: rx.el sexp regexp syntax, Eric Abrahamsen, 2018/06/02
- Re: rx.el sexp regexp syntax, Stefan Monnier, 2018/06/02
- Re: rx.el sexp regexp syntax, Eric Abrahamsen, 2018/06/03
- Re: rx.el sexp regexp syntax, Helmut Eller, 2018/06/03
- Re: rx.el sexp regexp syntax,
Eric Abrahamsen <=
- Re: rx.el sexp regexp syntax, Helmut Eller, 2018/06/03
- Re: rx.el sexp regexp syntax, Eric Abrahamsen, 2018/06/03
- RE: rx.el sexp regexp syntax, Drew Adams, 2018/06/03
- Re: rx.el sexp regexp syntax, Eric Abrahamsen, 2018/06/03
- RE: rx.el sexp regexp syntax, Drew Adams, 2018/06/03
- Re: rx.el sexp regexp syntax, Stefan Monnier, 2018/06/04
- RE: rx.el sexp regexp syntax, Drew Adams, 2018/06/04
- Re: rx.el sexp regexp syntax, Pierre Neidhardt, 2018/06/04