From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Newsgroups: gmane.lisp.guile.user Subject: Re: Nyacc: how to lex comments? Date: Tue, 17 Mar 2020 13:42:15 +0100 Message-ID: <20200317124215.GI27693@tuxteam.de> References: <20200316213941.GA5467@tuxteam.de> <20200317074649.GA27693@tuxteam.de> <8e63d711-a8b0-a525-b58a-2dac104a5e46@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TKDEsImF70pdVIl+" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="126599"; 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 Tue Mar 17 13:42:36 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 1jEBYJ-000Wpm-OX for guile-user@m.gmane-mx.org; Tue, 17 Mar 2020 13:42:35 +0100 Original-Received: from localhost ([::1]:60674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEBYI-0005PU-QN for guile-user@m.gmane-mx.org; Tue, 17 Mar 2020 08:42:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43545) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEBY8-0005PO-E1 for guile-user@gnu.org; Tue, 17 Mar 2020 08:42:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jEBY7-0001ne-Fd for guile-user@gnu.org; Tue, 17 Mar 2020 08:42:24 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:40568) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jEBY6-0001V5-Vr for guile-user@gnu.org; Tue, 17 Mar 2020 08:42:23 -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=VACa6bdV5th1oNS5ogbVWWogphXTz0VJkrFHW9s05GE=; b=G0d5GSxQmeukxVk/uoMJRSzakeBgcQY3X6PSdoisppIQb8Ob5ypmMlIAeCoHEotwTqMKP+agBHP9DRI5IAKTQkf5GNLjiQfE6iw1ftqH2XZ8aMRjYqek4uiDJwgLFkqVi8k9kmlm+3JaHabWClp1noffH6zclO5u73MoCAYkdE3NIHFNmnESx/0NdFNVOi2g/1TSZoGOmS25B1iYF6azV79GrrTeENi7MGryvSSpm2OzqWg12z7LqNXqkqJ4ACnTb+DQvC2Y+9QgfSubuV88rkYtzT3AHvLp6N3FBmi7bSjW0NYjgi0AL+JH2fqkLAfG0QMVWxIMm6GHsR+/8Os0ig==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1jEBXz-0001Xz-Qe for guile-user@gnu.org; Tue, 17 Mar 2020 13:42:15 +0100 Content-Disposition: inline In-Reply-To: <8e63d711-a8b0-a525-b58a-2dac104a5e46@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 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:16317 Archived-At: --TKDEsImF70pdVIl+ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 17, 2020 at 05:31:32AM -0700, Matt Wette wrote: >=20 >=20 > On 3/17/20 12:46 AM, tomas@tuxteam.de wrote: [...] > >I didn't quite understand the difference between both. Would I have > >to include comments explicitly in the grammar if the lexer uses > >#:comment-reader? > > > >Thanks again > >-- tom=C3=A1s > Yes.=C2=A0 Use comm-reader if your grammar accepts comments. > Use comm-skipper if your grammar does not. >=20 > The ffi-helper does read comments in the C grammar and > dumps them in the output files, for example. Ah, I see, thanks. Thank you for your invaluable help! Cheers -- t --TKDEsImF70pdVIl+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAl5wxacACgkQBcgs9XrR2kZCJQCfQMINVesCK4QgQilx2zK+M0SH CG0AnR11dTHCaFonRA+S7RJ/C4mhNTb6 =AcGU -----END PGP SIGNATURE----- --TKDEsImF70pdVIl+--