pega-texto VS cpp-peglib

Compare pega-texto vs cpp-peglib and see what are their differences.


Single-file Parsing Expression Grammars (PEG) runtime engine for C (by gilzoide)


A single file C++ header-only PEG (Parsing Expression Grammars) library (by yhirose)
Our great sponsors
  • - Download’s Tech Salary Report
  • Scout APM - Truly a developer’s best friend
  • SonarQube - Static code analysis for 29 languages.
pega-texto cpp-peglib
2 3
16 619
- -
0.0 8.7
5 months ago 6 days ago
C C++
The Unlicense MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of pega-texto. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-02-18.


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 2022-09-18.
  • What are some cool modern libraries you enjoy using?
    32 projects | | 18 Sep 2022
    By the same author, is also very nice.
  • A Good Tool for Resuming Parsers?
    2 projects | | 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.

What are some alternatives?

When comparing pega-texto and cpp-peglib you can also consider the following projects:

PEGTL - Parsing Expression Grammar Template Library

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.

scnlib - scanf for modern C++

filter_spirit - Advanced item filter generator for Path of Exile that uses it's own DSL and online item price APIs

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

flex - The Fast Lexical Analyzer - scanner generator for lexing in C and C++