From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Janneke Nieuwenhuizen Newsgroups: gmane.lisp.guile.user Subject: [bug nyacc] C99 parser crashes on #warning Date: Sat, 08 Jun 2024 09:27:21 +0200 Organization: AvatarAcademy.nl Message-ID: <878qzfuc6e.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17282"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: guile-user@gnu.org To: Matthew Wette Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Jun 08 09:27:59 2024 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 1sFqUZ-0004I8-0a for guile-user@m.gmane-mx.org; Sat, 08 Jun 2024 09:27:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFqU4-0003CJ-HG; Sat, 08 Jun 2024 03:27:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sFqU2-0003Bn-J6 for guile-user@gnu.org; Sat, 08 Jun 2024 03:27:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sFqU1-0005ti-IJ; Sat, 08 Jun 2024 03:27:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=k5QYTMFGnx+E5O7C/fv6zZ7aS5NlC819mS81mi3KPvQ=; b=ZAzcWdXDq5bSUh hhgN3dBfBDKBxKy5m71H1IDwkzmmmVLz66vVydMnncHu2J5vHNmPEu+wJQJ7UnIlQbKVxj5nL0G36 5lPVOiwdFtFaI90npFDeEJRQYynNT/T9pPghzXQPscfXUfQmuehqnV/kQp/zbkoF38ol8sGk3N/N1 j8ZGkXq9+cP44HsEJ5DnmvcAe0wpqqr7KkHGBX0shTgQaVuEeWsV/GOn45Qy3lEuvFBhd2oxAx1eq u5SgqiqpBZ2YhCN0Tg5GyiyIxLF9OeT+81neyTX3D8pMLOqr0k1Za2EekbZt8vpQMOrKv+FrMrMd/ fR1P9lCwoAEtSB+UEePw==; X-Url: http://AvatarAcademy.nl X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 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-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19711 Archived-At: Hi! Using the file warning.c: --8<---------------cut here---------------start------------->8--- // warning.c #warning warn me! #warning oops --8<---------------cut here---------------end--------------->8--- Nyacc's c99 parser crashes on (right after) the first #warning --8<---------------cut here---------------start------------->8--- $ guile=20 GNU Guile 3.0.9 Copyright (C) 1995-2023 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> ,use (nyacc lang c99 parser) scheme@(guile-user)> ,use (nyacc version) scheme@(guile-user)> *nyacc-version* $1 =3D "1.09.4" scheme@(guile-user)> (with-input-from-file "warning.c" parse-c99) warning: warn me! ice-9/boot-9.scm:1685:16: In procedure raise-exception: In procedure car: Wrong type argument in position 1 (expecting pair): # Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1]> ,bt In ice-9/ports.scm: 433:17 9 (call-with-input-file _ _ #:binary _ #:encoding _ #:guess-enco= ding _) 472:4 8 (_ _) In nyacc/lang/c99/parser.scm: 784:6 7 (parse-c99 _ #:cpp-defs _ #:inc-dirs _ #:inc-help _ #:mode _ #= :xdef? _ # _ # _ =E2=80=A6) In ice-9/boot-9.scm: 1747:15 6 (with-exception-handler # =E2=80=A6) 1747:15 5 (with-exception-handler # =E2=80=A6) In nyacc/lang/c99/parser.scm: 787:33 4 (_) In nyacc/parse.scm: 169:37 3 (_ # #:debug _) In nyacc/lang/c99/parser.scm: 697:27 2 (_) 594:29 1 (read-token) In ice-9/boot-9.scm: 1685:16 0 (raise-exception _ #:continuable? _) scheme@(guile-user) [1]>=20 --8<---------------cut here---------------end--------------->8--- Greetings, Janneke --=20 Janneke Nieuwenhuizen | GNU LilyPond https://LilyPond.org Freelance IT https://www.JoyOfSource.com | Avatar=C2=AE https://AvatarAcade= my.com