all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mike Mattie <codermattie@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Where did the regexp fail?
Date: Mon, 7 Apr 2008 18:25:50 -0700	[thread overview]
Message-ID: <20080407182550.7734d64f@reforged> (raw)
In-Reply-To: <47FA36BB.2060206@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1490 bytes --]

On Mon, 07 Apr 2008 16:59:07 +0200
"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> wrote:

> Thanks Chris, Peter, Drew and Tim for your helpfullness. I appreciate 
> it. But my struggles with regexps and all the parenthesis are very
> easy today since I always use rx for complicated regexps.
> 
> My struggle with trying to express what I am looking for is however
> not at all finished ;-)
> 
> I wanted some kind of simple parser for data in a buffer, but I
> realize now that I have to write a small small parser to be able to
> give the feedback I want to the user.

I am writing that sort of Parser Compiler in elisp. It's not production ready,
but it does have a tracing facility for inspecting run-time parser matching.

It was originally conceived for building data structures out of reports
from command line tools and generalized later as a full Parser Compiler
so it should fit the bill.

http://www.emacswiki.org/cgi-bin/emacs-en/ParserCompiler

mail me if you are interested and I will keep you posted. Could I get a data
sample as a test-set ? I would like to expand my testing beyond my own cases.

> 
> Corsair wrote:
> > "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
> > 
> >> Is there any easy way to see where a regexp failed? Parts of it may
> >> have matched and sometimes you may want to see how much that
> >> matched. Or, more precisely: where it finally failed.
> > 
> > Test it part by part?
> > 
> 
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2008-04-08  1:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.10090.1207537902.18990.help-gnu-emacs@gnu.org>
2008-04-07  7:27 ` Where did the regexp fail? Corsair
2008-04-07  9:02   ` Tim X
2008-04-07 14:59   ` Lennart Borgman (gmail)
2008-04-08  1:25     ` Mike Mattie [this message]
2008-04-08  8:39       ` Lennart Borgman (gmail)
2008-04-07  3:11 Lennart Borgman (gmail)
2008-04-07  8:38 ` Peter Dyballa

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=20080407182550.7734d64f@reforged \
    --to=codermattie@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.