TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 230 subscribers
Post #25385 14
Parsing Expression Grammar Template Library (PEGTL) 4.0.0 Released

Hello, version 4.0.0 of the PEGTL has been released!

For those not familiar, let me quote the first sentence of the documentation: "The Parsing Expression Grammar Template Library (PEGTL) is a zero-dependency C++ header-only parser combinator library for creating parsers according to a Parsing Expression Grammar (PEG)."

The basics are still the same, grammars are implemented in C++ with nested template instantiations, however a lot has also changed. Some highlights:

* Switched to Boost Software License
* A bunch of new parsing rules and actions.
* The inputs have been rewritten from scratch.
* Nested exceptions are used for nested parsing errors.
* Native support for parsing sequences of arbitrary objects.

This is the last major version that will stick with C++17.

Repository page: https://github.com/taocpp/PEGTL

Release page: https://github.com/taocpp/PEGTL/releases/tag/4.0.0

https://redd.it/1tzfwyf
@r_cpp
GitHub GitHub - taocpp/PEGTL: Parsing Expression Grammar Template Library Parsing Expression Grammar Template Library. Contribute to taocpp/PEGTL development by creating an account on GitHub.
More from @r_cpp
  1. Sep 29, 2026Boost.Graph 1.95 will be C++17 Dear Boost.Graph community, In two release cycles (Boost re…
  2. Sep 26, 2026Token Sequence Injection & Modern Macros: The Most Game-Changing Compile-Time Feature in C…
  3. Sep 25, 2026myStringStream.str("") Considered Harmful Under C++20 I was recently looking at some (rath…
  4. Sep 20, 2026A clever branch free optimization I'm the developer of memlz which is an extremely fast co…
  5. Sep 15, 2026Inside Boost.PolyCollection https://bannalia.blogspot.com/2026/09/inside-boostpolycollecti…
  6. Sep 11, 2026C++26: Standard Library Hardening Experiments https://www.cppstories.com/2026/hardening-ex…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →