From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: (sxml match) Date: Wed, 26 May 2010 14:39:05 +0200 Message-ID: References: <87632br73b.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1274877458 21108 80.91.229.12 (26 May 2010 12:37:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 26 May 2010 12:37:38 +0000 (UTC) Cc: guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed May 26 14:37:35 2010 connect(): No such file or directory Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OHFra-0005kG-8D for guile-devel@m.gmane.org; Wed, 26 May 2010 14:37:34 +0200 Original-Received: from localhost ([127.0.0.1]:48543 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHFrZ-0006m9-Jd for guile-devel@m.gmane.org; Wed, 26 May 2010 08:37:33 -0400 Original-Received: from [140.186.70.92] (port=40094 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHFrS-0006m4-0Z for guile-devel@gnu.org; Wed, 26 May 2010 08:37:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHFrQ-000395-PQ for guile-devel@gnu.org; Wed, 26 May 2010 08:37:25 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:35645 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHFrQ-00034s-Nd; Wed, 26 May 2010 08:37:24 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 9E32FB6114; Wed, 26 May 2010 08:36:59 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=AC5YHAJwxKrR dhRdZhLCp30FJZo=; b=JMURal9Q8EAFqLexx1aUK+69NjsAeG2i2imHO3s9FeoP iJfRdM6dTUAq5Sa/xVkyRRulByz5Q8/PzmiKl+KLS4pChdb0JxD0VQnluvjEXSuV NwzLPPOLut6+pIjhnOQWQfGEvWtPqGZujtleyI9vvqj3cnqHFvkG53upufm41K4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=B1O3A9 o8hK0m20pxX2XNZqYNI3tIcNwi93EXL97FGT5LMffmYgymbPcF+bM9LVlW/QuecN Q0RoJ97ljty5ZQTAQVcoTzl1c2bH6ctQeFoScOx5Q8UN2eKIov/gQcO2u/BdV1RR MsZh7AGYp6e2tlwbsGy5Qc4H0phiFEWsGEIkE= Original-Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 53E6AB6111; Wed, 26 May 2010 08:36:58 -0400 (EDT) Original-Received: from unquote (unknown [83.202.37.151]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 9963EB6110; Wed, 26 May 2010 08:36:56 -0400 (EDT) In-Reply-To: <87632br73b.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Tue, 25 May 2010 23:42:48 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-Pobox-Relay-ID: 5FFB8D64-68C3-11DF-92AA-6730EE7EF46B-02397024!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:10371 Archived-At: Hi, On Tue 25 May 2010 23:42, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > There=E2=80=99s now a new (sxml match) module, containing Jim Bender=E2= =80=99s excellent > SXML pattern matcher (released under the X11/MIT license): Cool :) > I integrated the doc in the manual. Unfortunately it can=E2=80=99t be ma= de to > appear close to the automatically generated doc of (sxml simple), so it > actually appears before. I=E2=80=99m open to suggestions to improve that. You could put the documentation in the module commentary of (sxml match), as texinfo. Or you could extend module-commentary somehow to look for commentaries in other sources. Probably easiest just to paste the texinfo you already wrote into the commentary, no? > The test suite reveals an interesting psyntax =E2=80=9Cproblem=E2=80=9D: = renaming the > =E2=80=98xyzpq=E2=80=99 variable in sxml-match-tests.ss to =E2=80=98x=E2= =80=99 leads to: > > ERROR: In procedure macroexpand: > ERROR: identifier out of context in subform `x' of `(quote (d (a 1 2 3) (= a 4 5) (a 6 7 8) (a 9 10)))' > > Ideas? > > (Would be good if psyntax error reporting contained source location > info.) It would certainly be possible to maintain a stack of source locations in the expander, and modify syntax-violation to look in that stack. There is also the possibility of simply inspecting the syntax objects given to syntax-violation for source info, but it might not be there -- best to have a stack to at least give approximate info. Andy --=20 http://wingolog.org/