GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing cpp.libhunt.com — PEGTL Alternatives - C++ Containers | LibHunt PEGTLParsing Expression Grammar Template Library
Take the C++ Developer Survey
- About 6 minutes on the tools, libraries and AI you use with C++. You get the results by email.
Take the survey »
Popularity
6.6
Stable
Activity
9.4
-
Stars
2,175
Watchers
59
Forks
249
Last Commit
DescriptionThe Parsing Expression Grammar Template Library (PEGTL) is a zero-dependency C++11 header-only library for creating parsers according to a Parsing Expression Grammar (PEG).
Programming language: C++
License: gtkbook License
Latest version: v4.0.0
PEGTL alternatives and similar libraries
Based on the "Containers" category.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
Promo
www.saashub.com
* Code Quality Rankings and insights are calculated and provided by Lumnify.
Do you think we are missing an alternative of PEGTL or a related project? Popular ComparisonsREADMEWelcome to the PEGTLThe 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 main branch will go through phases of incompatible changes while parts of the evolution branch are back-ported. Please download the latest release rather than using unreleased changes from the main branch. Documentation
ContactFor questions and suggestions regarding the PEGTL, success or failure stories, and any other kind of feedback, please feel free to join our Discord server, open a discussion, an issue or a pull request on GitHub or contact the authors at IntroductionGrammars are written as regular C++ code, created with template programming (not template meta programming), i.e. nested template instantiations that naturally correspond to the inductive definition of PEGs (and other parser-combinator approaches). A comprehensive set of [parser rules](doc/Rule-Reference.md) that can be combined and extended by the user is included, as are mechanisms for debugging grammars, and for attaching user-defined [actions](doc/Actions-and-States.md) to grammar rules. Here is an example of how a PEG grammar rule is implemented as C++ class with the PEGTL.
PEGs are superficially similar to Context-Free Grammars (CFGs), however the more deterministic nature of PEGs gives rise to some very important differences. The included [grammar analysis](doc/Grammar-Analysis.md) finds several typical errors in PEGs, including left recursion. DesignThe PEGTL is designed to be "lean and mean", the core library consists of approximately 6000 lines of code. Emphasis is on simplicity and efficiency, preferring a well-tuned simple approach over complicated optimisations. The PEGTL is mostly concerned with parsing combinators and grammar rules, and with giving the user of the library (the possibility of) full control over all other aspects of a parsing run. Whether/which actions are taken, and whether/which data structures are created during a parsing run, is entirely up to the user. Included are some [examples](doc/Contrib-and-Examples.md#examples) for typical situation like unescaping escape sequences in strings, building a generic JSON data structure, and on-the-fly evaluation of arithmetic expressions. Through the use of template programming and template specialisations it is possible to write a grammar once, and use it in multiple ways with different (semantic) actions in different (or the same) parsing runs. With the PEG formalism, the separation into lexer and parser stages is usually dropped -- everything is done in a single grammar. The rules are expressed in C++ as template instantiations, and it is the compiler's task to optimise PEGTL grammars. StatusEach commit is automatically tested with multiple architectures, operating systems, compilers, and versions thereof. Each commit is checked with GCC's and Clang's sanitizers, Clang's Static Analyzer, and Code coverage is automatically measured and the unit tests cover 100% of the core library code (for releases). Releases are done in accordance with Semantic Versioning. Incompatible API changes are only allowed to occur between major versions. Thank YouIn appreciation of all contributions here are the people that have directly contributed to the PEGTL and/or its development. The Art of C++The PEGTL is part of The Art of C++. LicenseCopyright (c) 2007-2022 Daniel Frey and Dr. Colin Hirsch The PEGTL is certified Open Source software. It is licensed under the terms of the Boost Software License, Version 1.0 reproduced here.
Do not miss the trending, libraries, news and articles with our weekly report.
Spin The Wheel Of Names
for a cryptographically secure random name picker.
Schedule a when to meet poll. |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |