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: PEG Parser Date: Fri, 18 Feb 2011 23:03:31 +0100 Message-ID: References: <87bp3fi5cp.fsf@gnu.org> <87aaisr6sn.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1298066368 3854 80.91.229.12 (18 Feb 2011 21:59:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Feb 2011 21:59:28 +0000 (UTC) Cc: Michael Lucy , Ludovic =?utf-8?Q?Court=C3=A8s?= , guile-devel@gnu.org To: Noah Lavine Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Feb 18 22:59:23 2011 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 1PqYMF-0007sQ-1v for guile-devel@m.gmane.org; Fri, 18 Feb 2011 22:59:23 +0100 Original-Received: from localhost ([127.0.0.1]:40092 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PqYME-0007BG-IY for guile-devel@m.gmane.org; Fri, 18 Feb 2011 16:59:22 -0500 Original-Received: from [140.186.70.92] (port=39937 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PqYMA-00075Q-P0 for guile-devel@gnu.org; Fri, 18 Feb 2011 16:59:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PqYM9-0001HJ-Nd for guile-devel@gnu.org; Fri, 18 Feb 2011 16:59:18 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:57815 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PqYM9-00016V-I5; Fri, 18 Feb 2011 16:59:17 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 31BA24697; Fri, 18 Feb 2011 16:59:34 -0500 (EST) 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; s=sasl; bh=Id2DqQ+CMG/fr/Ay8zHs3Syw3tc=; b=B3UhTJ XlRyx8MhGqWxKGN7sk2Bdi6J3pDh5JED2rp3adR2+8fOdemKNdQQqzkah1o9/K62 mRuzxbC7II3rioyoZEmBX1zkFdm0Ng1NPVLVTmPA3U7RpqHIq9d80PtHT8n7rub+ 7S59CphkbTh+q5Ad/g/IlX2mcdQB0l+ZDFLek= 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; q=dns; s=sasl; b=tdb3cT1VdixAvWPLYAV0/zLlWcSgeYIR 1W9vOaYvbMBrbLeeL3dFrhfTKpsTK/M5crsgJbNCqP74JM+vq4jmIPI/3ViPZ9bM gA19Svz8UGIqx2FlvEa0sUai7hsnQVmCIMB6sK0LL1NRAywAQ9sZcXBbltnBwoC6 1GQ5mlKfsLA= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id F12444696; Fri, 18 Feb 2011 16:59:30 -0500 (EST) Original-Received: from unquote.localdomain (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id C514C4695; Fri, 18 Feb 2011 16:59:26 -0500 (EST) In-Reply-To: (Noah Lavine's message of "Tue, 1 Feb 2011 19:26:43 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 5CDB3C6E-3BAA-11E0-8519-AF401E47CF6F-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 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:11659 Archived-At: On Wed 02 Feb 2011 01:26, Noah Lavine writes: > Here it is! All of the unhygienic syntax is gone, is a series of only > 20 commits. :-) The peg.test tests should all pass after each one of > these commits. Thanks! You've probably seen that I've applied this to wip-mlucy, which we should probably rename wip-peg. I've also added on a number of cleanups of my own, some of which I will push out shortly when my ISP figures out the route to git.sv.gnu.org again (hah). The branch still needs some work before it can go in. I have a feeling that it should probably be split into two modules -- one providing the things that peg-sexp-compile needs (minus `peg' patterns perhaps?) and another that uses the "base" library to define a PEG grammar. Perhaps? In any case we need to not have the entire thing in one big ol' eval-when. Also, the documentation needs some help, and perhaps the patterns need some tweaking -- for example (& pat) makes more sense than (body & pat 1) or the like. I think Michael's work was pretty great, especially considering the scope of the problem. It has the potential to have so wide an impact that we should focus on making it have exactly the right interface before we merge it in. Onwards, upwards, etc.! Andy -- http://wingolog.org/