From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Mattie Newsgroups: gmane.emacs.help Subject: Re: Where did the regexp fail? Date: Mon, 7 Apr 2008 18:25:50 -0700 Message-ID: <20080407182550.7734d64f@reforged> References: <873apygm4j.fsf@gmail.com> <47FA36BB.2060206@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/0IYuLLGXBOtTkOpLCEw=tqB"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Trace: ger.gmane.org 1207618072 32130 80.91.229.12 (8 Apr 2008 01:27:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Apr 2008 01:27:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 08 03:28:24 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jj2dJ-0005jT-5d for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Apr 2008 03:28:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jj2cf-0001r9-Sh for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Apr 2008 21:27:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jj2cH-0001oC-Hw for help-gnu-emacs@gnu.org; Mon, 07 Apr 2008 21:27:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jj2cF-0001lr-QO for help-gnu-emacs@gnu.org; Mon, 07 Apr 2008 21:27:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jj2cF-0001lc-N6 for help-gnu-emacs@gnu.org; Mon, 07 Apr 2008 21:27:15 -0400 Original-Received: from wf-out-1314.google.com ([209.85.200.171]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jj2cF-0002KU-9F for help-gnu-emacs@gnu.org; Mon, 07 Apr 2008 21:27:15 -0400 Original-Received: by wf-out-1314.google.com with SMTP id 29so1788969wff.24 for ; Mon, 07 Apr 2008 18:27:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; bh=6zpQf2sD9pdmnkZTN+Z5BhAhfdhxcMgou5dXqDJUcJk=; b=o2X3YNykZ3qRMeKCN19rHtUwfV4DfbuHB0fOM/5WJeXh8cWen4fuZiqDSoam54m4BDikvfOzuuwGlCAo/QnVMhJQqNNb5M/0rvHColKrQoqvozrOakcUZdLz6+gt3jr6jR3kaakpRXXDgOw3Bfj6GnNtxb6pYVrPdjGk++Gcbr4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; b=TUlXe9eA8zSjI15hVV1qNmMFl/TjttKWxz43ZaKI/E3KV8dkpKKBNJY1YAb/9R7zLS595Btzx/KNGlXf+jiprR7XaYiqpWBzIdSU3MmsxOPWfQ57CycvX4EIRSPOPwZCGka57KUq0rFFs3wkQv8fpWFLdCMuRJPLfz9zQtZ8OK8= Original-Received: by 10.142.148.7 with SMTP id v7mr2872061wfd.218.1207618029217; Mon, 07 Apr 2008 18:27:09 -0700 (PDT) Original-Received: from reforged ( [71.217.206.83]) by mx.google.com with ESMTPS id 28sm20117228wfg.17.2008.04.07.18.27.08 (version=SSLv3 cipher=OTHER); Mon, 07 Apr 2008 18:27:08 -0700 (PDT) In-Reply-To: <47FA36BB.2060206@gmail.com> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.8; i686-pc-linux-gnu) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53144 Archived-At: --Sig_/0IYuLLGXBOtTkOpLCEw=tqB Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 07 Apr 2008 16:59:07 +0200 "Lennart Borgman (gmail)" wrote: > Thanks Chris, Peter, Drew and Tim for your helpfullness. I appreciate=20 > it. But my struggles with regexps and all the parenthesis are very > easy today since I always use rx for complicated regexps. >=20 > My struggle with trying to express what I am looking for is however > not at all finished ;-) >=20 > 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 rea= dy, 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 case= s. >=20 > Corsair wrote: > > "Lennart Borgman (gmail)" writes: > >=20 > >> 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. > >=20 > > Test it part by part? > >=20 >=20 >=20 --Sig_/0IYuLLGXBOtTkOpLCEw=tqB Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFH+smedfRchrkBInkRApU4AJ9neTeNDT0hPJ0VSMCjH4Tiin5lzgCg51R5 eAxmrgTq28r1x0czp49cvdk= =v285 -----END PGP SIGNATURE----- --Sig_/0IYuLLGXBOtTkOpLCEw=tqB--