pegtl
« Back to VersTracker
Description:
Parsing Expression Grammar Template Library
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ parsing library header-only grammar
Install: brew install pegtl
About:
PEGTL is a C++ header-only library for parsing expressions defined at compile-time. It enables developers to build parsers directly within C++ code without external DSLs or code generators. Its primary value is high performance and seamless integration with C++ applications.
Key Features:
  • Header-only library
  • Parsers defined in C++ code
  • Zero dependencies
  • High performance
Use Cases:
  • Building custom configuration file parsers
  • Implementing domain-specific languages (DSLs)
  • Protocol parsing in network applications
Alternatives:
  • Boost.Spirit – Similar C++ parser combinator library, part of the larger Boost collection
  • ANTLR – Generates parsers from external grammar files rather than using C++ code directly
Version History
Detected Version Rev Change Commit