yhirose / cpp-peglib

A single file C++ header-only PEG (Parsing Expression Grammars) library
MIT License
916 stars 113 forks source link

The & operator is undocumented. #308

Closed gamagan closed 1 month ago

gamagan commented 1 month ago

The & operator is undocumented.

yhirose commented 1 month ago

It's because the And-predicate is in the original PEG syntax described in the document by by Bryan Ford.

Please see the 4th paragraph in README. Thanks.

gamagan commented 1 month ago

It would be helpful to document the original PEG operators on the page, for completeness. A quick mention could remind the users they exist. Something like:


The PEG syntax is well described on page 2 in the document by Bryan Ford. cpp-peglib supports the original operators:

cpp-peglib also supports the following additional syntax for now: