C++ parsing-expression-grammars

Open-source C++ projects categorized as parsing-expression-grammars

Top 3 C++ parsing-expression-grammar Projects

parsing-expression-grammars
  1. PEGTL

    Parsing Expression Grammar Template Library

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. cpp-peglib

    A single file C++ header-only PEG (Parsing Expression Grammars) library

    Project mention: Fixing Left and Mutual Recursions in Grammars | news.ycombinator.com | 2025-02-02

    Debugging a complex PEG is a nightmarish task. I use various tools, but I couldn't find anything out there that will let you set a breakpoint in a file that's being parsed and let you explore the parsing state.

    The most useful tools I found were adjacent to the cpp-peglib library: https://github.com/yhirose/cpp-peglib

    This comes with a PEG playground: https://yhirose.github.io/cpp-peglib/

    I really liked pegdebug: https://mqnc.github.io/pegdebug/

    With sample output here: https://mqnc.github.io/pegdebug/example/output.html

    pegdebug is nice for small sets of data, but it rapidly gets swamped by anything over about 50 lines.

    If anyone has other suggestions for debugging PEGs, please reply and let me know,.

  4. matcheroni

    A minimalist single-header library for building pattern-matchers, lexers, and parsers.

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).

C++ parsing-expression-grammars discussion

Log in or Post with

C++ parsing-expression-grammars related posts

  • Fixing Left and Mutual Recursions in Grammars

    2 projects | news.ycombinator.com | 2 Feb 2025
  • yhirose/cpp-peglib - A single file C++ header-only PEG (Parsing Expression Grammars) library

    1 project | /r/programming | 20 Jan 2021

Index

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

# Project Stars
1 PEGTL 2,031
2 cpp-peglib 961
3 matcheroni 201

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that C++ is
the 7th most popular programming language
based on number of references?