GNU bug report logs - #73188
PEG parser does not support full PEG grammar

Previous Next

Package: guile;

Reported by: Ekaitz Zarraga <ekaitz <at> elenq.tech>

Date: Wed, 11 Sep 2024 22:05:01 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#73188: closed (PEG parser does not support full PEG grammar)
Date: Mon, 09 Dec 2024 17:24:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 09 Dec 2024 18:23:32 +0100
with message-id <87y10olqi3.fsf <at> gnu.org>
and subject line Re: bug#73188: PEG parser does not support full PEG grammar
has caused the debbugs.gnu.org bug report #73188,
regarding PEG parser does not support full PEG grammar
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
73188: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=73188
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ekaitz Zarraga <ekaitz <at> elenq.tech>
To: "bug-guile <at> gnu.org" <bug-guile <at> gnu.org>
Subject: PEG parser does not support full PEG grammar
Date: Thu, 12 Sep 2024 00:03:57 +0200
[Message part 3 (text/plain, inline)]
Hi,

I noticed the PEG parser does not support the full PEG grammar, this 
includes comments, double quotes, escaping and underscores.

The attached patch adds support for those (I sent it to guile-devel but 
I guess it's better to do it here).

I'm trying to test it with Zig's grammar but I'm having some issues and 
the way this is generated it's really hard to test. As is, this patch 
passes all the current tests in Guile which includes being able to parse 
peg-as-peg, which now has comments and features that were not 
implemented before.

Thank you,
Ekaitz
[0001-PEG-Add-full-support-for-PEG-some-extensions.patch (text/x-patch, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Ludovic Courtès <ludo <at> gnu.org>
To: Ekaitz Zarraga <ekaitz <at> elenq.tech>
Cc: 73188-done <at> debbugs.gnu.org
Subject: Re: bug#73188: PEG parser does not support full PEG grammar
Date: Mon, 09 Dec 2024 18:23:32 +0100
Egun on!

Finally pushed v4 with slight edits to ‘NEWS’:

  25504ba21 PEG: Add support for `not-in-range` and [^...]
  ff11753df PEG: Add full support for PEG + some extensions

Thank you!

Ludo’.


This bug report was last modified 143 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.