cpp-peglib

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

Cpp-peglib Alternatives

Similar projects and alternatives to cpp-peglib

  1. adventofcode

    Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 and 2024 in Scala (by sim642)

  2. JetBrains

    Tell us how you use coding tools. You may win a prize! Are you a developer or a data analyst? Share your thoughts about your coding tools in our short survey and get a chance to win prizes!

    JetBrains logo
  3. stb

    stb single-file public domain libraries for C/C++

  4. {fmt}

    A modern formatting library

  5. AoC

    my personal repo for the advent of code yearly challenge (by Fadi88)

  6. abseil-cpp

    Abseil Common Libraries (C++)

  7. advent-of-code-go

    All 10 years of adventofcode.com solutions in Go/Golang (and a little Python); 2015-2024

  8. Magic Enum C++

    Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code

  9. 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
  10. adventofcode

    :christmas_tree: Advent of Code (2015-2024) in C# (by encse)

  11. json

    43 cpp-peglib VS json

    Strongly typed JSON library for Rust (by serde-rs)

  12. GLM

    40 cpp-peglib VS GLM

    OpenGL Mathematics (GLM)

  13. adventofcode

    Answers to Advent of Code (by viceroypenguin)

  14. aoc2022

    Advent of Code 2022 - my answers

  15. adventofcode

    adventofcode.com solutions (by linl33)

  16. PEGTL

    Parsing Expression Grammar Template Library

  17. advents-of-code

    🎄🎁 Solutions for the yearly advent of code challenges

  18. RESTinio

    Cross-platform, efficient, customizable, and robust asynchronous HTTP(S)/WebSocket server C++ library with the right balance between performance and ease of use

  19. outcome

    Provides very lightweight outcome<T> and result<T> (non-Boost edition)

  20. scope_guard

    A modern C++ scope guard that is easy to use but hard to misuse.

  21. Experimental Boost.DI

    C++14 Dependency Injection library

  22. ctpg

    Compile Time Parser Generator is a C++ single header library which takes a language description as a C++ code and turns it into a LR1 table parser with a deterministic finite automaton lexical analyzer, all in compile time.

  23. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better cpp-peglib alternative or higher similarity.

cpp-peglib discussion

Log in or Post with

cpp-peglib reviews and mentions

Posts with mentions or reviews of cpp-peglib. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-02-02.
  • Fixing Left and Mutual Recursions in Grammars
    2 projects | news.ycombinator.com | 2 Feb 2025
    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,.

  • -🎄- 2022 Day 13 Solutions -🎄-
    149 projects | /r/adventofcode | 12 Dec 2022
    I used yhirose's PEG (parsing expression grammar) libraryfor parsing.
  • What are some cool modern libraries you enjoy using?
    32 projects | /r/cpp | 18 Sep 2022
    By the same author, https://github.com/yhirose/cpp-peglib is also very nice.
  • A Good Tool for Resuming Parsers?
    2 projects | /r/cpp_questions | 2 Jan 2022
    Most of the research into this sort of incremental and differential parsing unsurprisingly looks to be in the Haskell community, but I was hoping that someone here might know of some C++-friendly tools that might support generating parsers that support interruption and resuming. cpp-peglib looked really promising, but its parsers don't look like they can be engaged from any but the initial state.
  • yhirose/cpp-peglib - A single file C++ header-only PEG (Parsing Expression Grammars) library
    1 project | /r/programming | 20 Jan 2021
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 1 Sep 2025
    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. Learn more →

Stats

Basic cpp-peglib repo stats
5
1,000
6.6
about 2 months ago

Sponsored
Tell us how you use coding tools. You may win a prize!
Are you a developer or a data analyst? Share your thoughts about your coding tools in our short survey and get a chance to win prizes!
surveys.jetbrains.com

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