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: how to implement mutual recursive parsers in syntax-parse Date: Tue, 15 May 2012 20:38:35 +0200 Message-ID: <87obppmgr8.fsf@pobox.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1337107136 4892 80.91.229.3 (15 May 2012 18:38:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 May 2012 18:38:56 +0000 (UTC) Cc: guile-devel To: Stefan Israelsson Tampe Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue May 15 20:38:54 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SUMe1-0007Vz-UZ for guile-devel@m.gmane.org; Tue, 15 May 2012 20:38:50 +0200 Original-Received: from localhost ([::1]:54458 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUMe1-0001BQ-5K for guile-devel@m.gmane.org; Tue, 15 May 2012 14:38:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUMdx-0001A9-J3 for guile-devel@gnu.org; Tue, 15 May 2012 14:38:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUMdv-0007ln-P3 for guile-devel@gnu.org; Tue, 15 May 2012 14:38:45 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62]:59407 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUMdv-0007lP-H0 for guile-devel@gnu.org; Tue, 15 May 2012 14:38:43 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 88CE99D45; Tue, 15 May 2012 14:38:41 -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=pSL8L8vf/KqI lNkiBF3gdBacY28=; b=M/7jJc1ItG22nPaiqEjVTqWqKiMIXRx0RbCNtVmjj8oX EBC89UW7Mzc3/olXScuh0wjmL7z92cuAJBs7+qs7QadOG/En+VW4h+F1PvUPfk1q BJG/x9CPLWtSvJY/IynOa0CARICH2KTTDqFFpmmcpOKCoPNsJmfo+W/vWt8v9E8= 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=LRPW6z NA5OgypUkRQSI8wRShcdmiXxIPvsI4EUdOn88U/PbEoeCtdq6K/tN+/L3hXcJASG aMQIcxa4fBIxgnQwAKHvPPTL1kpy6+iMB7oizrc/D6drxC+n2D0tk1U4eWriNdNo CoEoHZk03cMKsyGmJkhG6jNAmqjgrjiWWqI5E= 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 607109D44; Tue, 15 May 2012 14:38:41 -0400 (EDT) Original-Received: from badger (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 80B7C9D43; Tue, 15 May 2012 14:38:40 -0400 (EDT) In-Reply-To: (Stefan Israelsson Tampe's message of "Mon, 14 May 2012 21:13:11 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) X-Pobox-Relay-ID: 310DC0A8-9EBD-11E1-A840-E981AF15ED39-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 74.115.168.62 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:14438 Archived-At: On Mon 14 May 2012 21:13, Stefan Israelsson Tampe = writes: > (begin > =C2=A0=C2=A0 (define parser-a code-a ...) > =C2=A0=C2=A0 (define-syntax a spec-a)) > > (begin > =C2=A0=C2=A0 (define parser-b code-b ...) > =C2=A0=C2=A0 (define-syntax b spec-b)) > > In racket they manage to evaluate the define-syntax forms before the defi= ne-forms cause in the expansion > of code-a amd code-b they need the spec's spec-a and spec-b. > > Do you have any ideas how solve this. I do have a fix for problem but it = is not easy to use. Have you tried master? If I understand you correctly I think it should work there. Andy --=20 http://wingolog.org/