Re: [PATCH v2 5/5] peg: Add fall-back parsing.

Rutger van Beusekom <[email protected]>
Newsgroups gmane.lisp.guile.devel
Message-ID <DU0PR08MB741473B7C344CFF2ABEB3A10BB462@DU0PR08MB7414.eurprd08.prod.outlook.com>

________________________________
From: Ekaitz Zarraga <[email protected]>
Sent: Monday, 14 October 2024 17:58
To: Janneke Nieuwenhuizen <[email protected]>; [email protected] <[email protected]>
Cc: Rutger van Beusekom <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.