On March 12 and 14, after a long lull, versions 1.10.0 and 1.10.1 of the library were released. cpp-peglib, implementing PEG (Parsing Expression Grammar).
The library supports the syntax thoroughly described by Bryan Ford on page 2 of the document “Parsing Expression Grammars: A Recognition-Based Syntactic Foundation”, with many additional improvements.
Unlike projects such as PEGTL, Lexy and many others, cpp-peglib allows the definition of PEG expressions at runtime.
The library is written in C++ (C++17 standard, header-only) and is distributed under the MIT license.
Changes:
- Added support for predicate data processing;
- Added support for grammars with left recursion;
- Improved performance;
- Fixed a bug in the parameter order of the AST optimizer.
Source: linux.org.ru
