________________________________
From: Ekaitz Zarraga <eka...@elenq.tech>
Sent: Monday, 14 October 2024 17:58
To: Janneke Nieuwenhuizen <jann...@gnu.org>; guile-devel@gnu.org 
<guile-devel@gnu.org>
Cc: Rutger van Beusekom <rut...@dezyne.org>
Subject: Re: [PATCH v2 5/5] peg: Add fall-back parsing.

Hi Ekaitz,

> I think this change is not compatible with the PEG syntax. In PEG # is a
> line comment:

I am not attached to # as the PEG expect operator.  At the same time the
expect operator is not part of https://bford.info/pub/lang/peg.pdf. I think
we should consider choosing another name for the expect operator, do you
have a suggestion Ekaitz?

I was considering "reusing" the she-bang, i.e. #!, since the expect operator
throws an exception, but Janneke pointed out that ! as a modifier on the #
comment is not very intuitive and I tend to agree.

Regtur

Reply via email to