Closed gamagan closed 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.
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:
' '
(Literal string)" "
(Literal string)[ ]
(Character class).
(Any character)(e)
(Grouping)e?
(Optional)e*
(Zero-or-more)e+
(One-or-more)&e
(And-predicate)!e
(Not-predicate)e1 e2
(Sequence)e1 / e2
(Prioritized Choice)cpp-peglib also supports the following additional syntax for now:
The
&
operator is undocumented.