Registry / other / pegtl-2

pegtl-2

JSON →
library2.8.3vcpkgunverified

A C++11 header-only parser combinator library for creating parsers according to a Parsing Expression Grammar.

vcpkg install pegtl-2
INSTALL
IMPORT
SIG · PEGTL-2
P
pegtl-2
othercppv2.8.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pegtl/pegtl.hh
✓ #include <pegtl/pegtl.hh>

Parses the string 'hello' using a PEG grammar

#include <pegtl/pegtl.hh> #include <iostream> struct grammar : pegtl::string<'h','e','l','l','o'> {}; int main() { pegtl::string_input<> in("hello", "test"); if (pegtl::parse<grammar>(in)) { std::cout << "Parsed successfully\n"; } return 0; }
Debug
Known issues
gotchaVersion 2 is C++11 compatible but lacks features of PEGTL 3
fix
Consider using pegtl (version 3) for C++17 projects
affects: 2.x
Upgrade
Version history
2.8.3latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources

No resource links recorded.

pegtl-2 — pip install pegtl-2 · libregistry