all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pascal Bourguignon <pjb@informatimago.com>
Subject: Re: regexp to match a sexp?
Date: Sat, 29 Jul 2006 06:22:56 +0200	[thread overview]
Message-ID: <871ws511lr.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: mailman.4622.1154145591.9609.help-gnu-emacs@gnu.org

"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	other threads:[~2006-07-29  4:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.4622.1154145591.9609.help-gnu-emacs@gnu.org>
2006-07-29  4:22 ` Pascal Bourguignon [this message]
     [not found] <mailman.4621.1154138203.9609.help-gnu-emacs@gnu.org>
2006-07-29  2:24 ` regexp to match a sexp? Pascal Bourguignon
2006-07-29  3:59   ` Drew Adams
2006-07-29  1:55 Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871ws511lr.fsf@thalassa.informatimago.com \
    --to=pjb@informatimago.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.