From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Israelsson Tampe Newsgroups: gmane.lisp.guile.devel Subject: rackets syntax parse Date: Wed, 25 Jan 2012 21:37:17 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=90e6ba6153b0c4966804b7603a92 X-Trace: dough.gmane.org 1327524409 7549 80.91.229.12 (25 Jan 2012 20:46:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2012 20:46:49 +0000 (UTC) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Jan 25 21:46:44 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rq9jw-0002sO-Bu for guile-devel@m.gmane.org; Wed, 25 Jan 2012 21:46:44 +0100 Original-Received: from localhost ([::1]:54174 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq9at-0007Pk-Dz for guile-devel@m.gmane.org; Wed, 25 Jan 2012 15:37:23 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:43473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq9ap-0007OJ-AF for guile-devel@gnu.org; Wed, 25 Jan 2012 15:37:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rq9ao-0006EH-Bh for guile-devel@gnu.org; Wed, 25 Jan 2012 15:37:19 -0500 Original-Received: from mail-ee0-f41.google.com ([74.125.83.41]:63199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq9ao-0006B4-3b for guile-devel@gnu.org; Wed, 25 Jan 2012 15:37:18 -0500 Original-Received: by mail-ee0-f41.google.com with SMTP id c13so2105294eek.0 for ; Wed, 25 Jan 2012 12:37:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=aNUpO3EnlMklNOSmUPsPBn++vg5/98kevnjf2cgFMgI=; b=qgZq4yj6vesn2trD79e5UJxFHJJ1kpU57PNudXF5IGSPvY8yJ5F8kIkulhUkwp4VF8 GUGRvhbZjM+PEvT0ltrjqpezO5cXf5MUW0SXqR/N+y14FEGz3TV6tXccXWE3Fjbjl7ex N06YdI1ulkhYmwseABSfOs9x4wK0mt2yEjEN8= Original-Received: by 10.14.127.16 with SMTP id c16mr6600018eei.35.1327523837547; Wed, 25 Jan 2012 12:37:17 -0800 (PST) Original-Received: by 10.213.7.6 with HTTP; Wed, 25 Jan 2012 12:37:17 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.83.41 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:13680 Archived-At: --90e6ba6153b0c4966804b7603a92 Content-Type: text/plain; charset=ISO-8859-1 I got it working with an old version of guile but have problem with newest stable-2.0 I'll expand a macro #'(pk (syntax z)) and when evaluating this I get (#(syntax-object z ((m~TFEL$Gaj1u5PPt2i@IPCm top) #(ribcage () () ()) #(ribcage () () ()) #(ribcage () () ()) #(ribcage #(#{ g~TFEL$Gaj1u5PPt2i@IPCp}# #{ g~TFEL$Gaj1u5PPt2i@IPCq}#) #((m~TFEL$Gaj1u5PPt2i@IPCr top) (m~TFEL$Gaj1u5PPt2i@IPCr top)) #("o4" "o5")) #(ribcage () () ()) shift #(ribcage () () ()) #(ribcage () () ()) #(ribcage () () ()) #(ribcage #(z) #((m~TFEL$Gaj1u5PPt2i@IPCX top)) #("o2")) #(ribcage () () ()) #(ribcage () () ()) #(ribcage () () ()) #(ribcage () () ()) #(ribcage () () ()) #(ribcage () () ())) (hygiene guile-user))) There is a binding z that comes from a with-syntax but it does not flow through!! Is it because of the shift in the middle? Anyway I managed to make it work with earlier versions of psyntax but have hard time to make it works with current 2.0. Again the main issue is that guile psyntax does not support the #s notation in racket and hence the hacks on the syntax objects. (see the series of emails that I send previous week) /Stefan --90e6ba6153b0c4966804b7603a92 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I got it working with an old version of guile but have problem with newest<= br>stable-2.0

I'll expand a macro #'(pk (syntax z)) and when= evaluating this I get


(#(syntax-object z ((m~TFEL$Gaj1u5PPt2i@I= PCm top)
#(ribcage () () ())
#(ribcage () () ())
#(ribcage () () ())
#(r= ibcage #(#{ g~TFEL$Gaj1u5PPt2i@IPCp}# #{ g~TFEL$Gaj1u5PPt2i@IPCq}#)
=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 #((m~TFEL$Gaj1u5PPt2i@IPCr top) (m~TFEL$Gaj1= u5PPt2i@IPCr top)) #("o4" "o5"))
#(ribcage () () ())
shift
#(ribcage () () ())
#(ribcage () () ()= )
#(ribcage () () ())
#(ribcage #(z) #((m~TFEL$Gaj1u5PPt2i@IPCX top= )) #("o2"))
#(ribcage () () ())
#(ribcage () () ())
#(ribcage () () ())
#(ribcage () () ())
#(ribcage () () ())
#(r= ibcage () () ())) (hygiene guile-user)))

There is a binding z that c= omes from a with-syntax but it does not flow through!!
Is it because of = the shift in the middle?

Anyway I managed to make it work with earlier versions of psyntax but h= ave hard time to make it works
with current 2.0.

Again the main i= ssue is that guile psyntax does not support the #s notation in racket and h= ence the
hacks on the syntax objects. (see the series of emails that I send previous= week)

/Stefan
--90e6ba6153b0c4966804b7603a92--