From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.user Subject: Re: Nyacc question: where are the actions bound? Date: Thu, 30 Jul 2020 19:17:46 +0200 Message-ID: <20200730171746.GB23439@tuxteam.de> References: <20200308101445.GB28250@tuxteam.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KFztAG8eRSV9hGtP" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7275"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Thu Jul 30 19:18:10 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k1CC1-0001lg-Ew for guile-user@m.gmane-mx.org; Thu, 30 Jul 2020 19:18:09 +0200 Original-Received: from localhost ([::1]:60376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k1CC0-0003A3-CR for guile-user@m.gmane-mx.org; Thu, 30 Jul 2020 13:18:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k1CBp-00039t-RU for guile-user@gnu.org; Thu, 30 Jul 2020 13:17:58 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:48890) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1k1CBn-0001vc-PS for guile-user@gnu.org; Thu, 30 Jul 2020 13:17:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=8px/xFbMu7wJSER/J4pdJmoT6bGFM1TELLA4Fb3XEoQ=; b=B8Sd3lWpn7qFYFXyMQi03LMAynnPLbR50XnyCBBoZ+3/lx8p6jkoS5Ey6Ce0LbfvCntS3+2hQ5FS5LRXkKl3cB/5dyEIdzDhzXsDiypmOrCqCdIKABkauVN+IJlSGWcqc8WsSOdEGJ+iwQJ336jDbrr6XpuYX0EJU1+i0bUVqyE4eX5JFZIV0CA0xfh8r+Qs+Xd0nhF9wa4ExFGSRye8sCc997dm1Ibt0IanNRDmyXWgV4+LnlR9keha1w4LBElpiPBsjA7KcvQoINdylDetLq+6r0gt6jFYQFnvg2cXy2KfV31WOQNOQq4rCtFvhjujH94FwR6Het/rOEX5xZZZ3A==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1k1CBe-00071W-Qz for guile-user@gnu.org; Thu, 30 Jul 2020 19:17:46 +0200 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/30 13:17:47 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16761 Archived-At: --KFztAG8eRSV9hGtP Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 30, 2020 at 06:50:08AM -0700, Matt Wette wrote: > On 3/8/20 3:14 AM, tomas@tuxteam.de wrote: > >Hi, > > > >I'm playing around with Nyacc: I found a first little use case > >to get my feet wet. [...] > Hi Tomas, (I apologize for the ascii spelling) Hey, no worries. I don't take such things too seriously ;) > You may be able to do what you want with the following: >=20 > (define (parse) > =C2=A0(let ((raw-parser (make-lalr-parser))) > =C2=A0=C2=A0 (raw-parser (gen-lexer)))) Hm. Have to wrap my head around it (at the moment, I'm fine having the "semantic" functions bound in the module, and your last patch lets pass another module/namespace explicitly, so, short of local-eval, of which we don't know whether it's a good idea [1] anyway, all my wishes came true. So thanks, again Cheers [1] I'm still to pose a question on that in guile-user. -- t --KFztAG8eRSV9hGtP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAl8jALoACgkQBcgs9XrR2kaGUACfaJNOjFUmAO55R4u2jWxBR1hV uz4Ani2hbehBRHPNAKG+O6SRItJCTNA5 =ad4R -----END PGP SIGNATURE----- --KFztAG8eRSV9hGtP--