help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: regexp to match a sexp?


From: Pascal Bourguignon
Subject: Re: regexp to match a sexp?
Date: Sat, 29 Jul 2006 06:22:56 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Drew Adams" <drew.adams@oracle.com> writes:

> I stated that my purpose was the opposite. If I ask about turtles in
> Alabama, why do you tell me what you know about wine in Tuscany? ;-)

Because there is absolutely no turtle in Alabama.  The closest you can
get is wine in Tuscany. If you don't want it, then you're just asking
for something impossible, so be happy with what you have, that is,
nothing.

>     then you can easily write a sexp parser.  This is one of the simpliest
>     grammar there is.  In emacs, of course you can use the provided sexp
>     parser, with functions such as: forward-sexp, backward-sexp,
>     (thing-at-point 'sexp), read-from-string, etc...
>
> I know about those. No, I'm not interested in them here.
>
> I'm interested in how much that's interesting could be done with a regexp.
> The question is what you can do with `C-M-s' - what interesting regexps
> would you use to find which classes of sexp or almost-sexp?


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

"By filing this bug report you have challenged the honor of my
family. Prepare to die!"


reply via email to

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