[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: |
Fri, 25 May 2018 15:44:25 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Michael Heerdegen <address@hidden> writes:
> Eric Abrahamsen <address@hidden> writes:
>
>> I know, a few hours ago I went hunting in the repos for relevant
>> packages, and found yours. It certainly helps! Though I'd still rather
>> have something that actually transforms the regexps at compile time...
>
> I don't understand what you mean. rx transforms regexps at compile
> time.
I mean, a macro that lets me write an unescaped regexp that gets
compiled to an escaped regexp. So:
(r "turn (left|right)") compiles to "turn \\(left\\|right\\)"
Basically like python's string literals.
- Re: rx.el sexp regexp syntax (WAS: Off Topic), (continued)
- Re: rx.el sexp regexp syntax (WAS: Off Topic), Richard Stallman, 2018/05/24
- Re: rx.el sexp regexp syntax (WAS: Off Topic), Pierre Neidhardt, 2018/05/25
- Re: rx.el sexp regexp syntax (WAS: Off Topic), Alan Mackenzie, 2018/05/25
- Re: rx.el sexp regexp syntax (WAS: Off Topic), Pierre Neidhardt, 2018/05/25
- Re: rx.el sexp regexp syntax, Eric Abrahamsen, 2018/05/25
- Re: rx.el sexp regexp syntax, Pierre Neidhardt, 2018/05/25
- Re: rx.el sexp regexp syntax, Eric Abrahamsen, 2018/05/25
- Re: rx.el sexp regexp syntax, Clément Pit-Claudel, 2018/05/25
- Re: rx.el sexp regexp syntax, Eric Abrahamsen, 2018/05/25
- Re: rx.el sexp regexp syntax, Michael Heerdegen, 2018/05/25
- Re: rx.el sexp regexp syntax,
Eric Abrahamsen <=
- Re: rx.el sexp regexp syntax, Stefan Monnier, 2018/05/27
- Re: rx.el sexp regexp syntax, Pierre Neidhardt, 2018/05/28
- Re: rx.el sexp regexp syntax, Stefan Monnier, 2018/05/28
- Re: rx.el sexp regexp syntax, Richard Stallman, 2018/05/28
- Re: rx.el sexp regexp syntax, Robert Pluim, 2018/05/29
- Re: rx.el sexp regexp syntax, Philipp Stephani, 2018/05/29
- Re: rx.el sexp regexp syntax, Richard Stallman, 2018/05/29
- Re: rx.el sexp regexp syntax, Robert Pluim, 2018/05/30
- Re: rx.el sexp regexp syntax, Richard Stallman, 2018/05/30
- Re: rx.el sexp regexp syntax, Robert Pluim, 2018/05/31