C++ parser-combinators

Open-source C++ projects categorized as parser-combinators

Top 4 C++ parser-combinator Projects


    Parsing Expression Grammar Template Library

    Project mention: Show HN: Matcheroni, a tiny C++20 header library for building lexers/parsers | news.ycombinator.com | 2023-07-06

    Very cool, and I like the name!

    I'd be interested in reading about how Matcheroni compares with PEGTL and Lexy.


  • lexy

    C++ parsing DSL

    Project mention: Show HN: Matcheroni, a tiny C++20 header library for building lexers/parsers | news.ycombinator.com | 2023-07-06
  • Mergify

    Updating dependencies is time-consuming.. Solutions like Dependabot or Renovate update but don't merge dependencies. You need to do it manually while it could be fully automated! Add a Merge Queue to your workflow and stop caring about PR management & merging. Try Mergify for free.

  • spirit

    Boost.org spirit module

    Project mention: How does an experienced programmer go about learning new languages such as C++. | /r/cpp | 2022-11-26

    Oh, one project that I learned a lot of modern C++ from was, https://github.com/boostorg/spirit, I wanted to build a faster org-mode parser. I built at best a working prototype, but ended up learning a lot about how templates. It is also a header only library. If you want to avoid some administrative work, linking, choosing a build system, .... I figured it might be helpful.

  • hspp

    hspp: An experimental library to bring Haskell Style Programming to C++.

    Project mention: Chromium accepting Rust in a clear move to copy what Mozilla have done, replace C++ source code | /r/cpp | 2023-01-12

    Yeah, C++ supports higher kinded types through template templates (I'm not sure why the other poster said it doesn't), however it quickly becomes messy and impractical. Here's a cursed library that attempts to support Haskell-style programming in C++. Here's an example where they implement a monad transformer using the only example of a template template template that I have ever seen in the wild.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-07-06.

C++ parser-combinators related posts


What are some of the best open-source parser-combinator projects in C++? This list will help you:

Project Stars
1 PEGTL 1,766
2 lexy 857
3 spirit 361
4 hspp 148
Collect and Analyze Billions of Data Points in Real Time
Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.