Registry / utility / boost-spirit

boost-spirit

JSON →
library1.90.0vcpkgunverified

Boost.Spirit is an object-oriented recursive-descent parser generator framework implemented using template metaprogramming.

vcpkg install boost-spirit
INSTALL
IMPORT
SIG · BOOST-SPIRIT
B
boost-spirit
utilitycppv1.90.0
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.

boost/spirit/include/qi.hpp
#include <boost/spirit/include/qi.hpp>

Parses an integer from a string using Spirit.Qi

#include <boost/spirit/include/qi.hpp> #include <iostream> #include <string> namespace qi = boost::spirit::qi; int main() { std::string input = "42"; int n = 0; auto it = input.begin(); bool r = qi::parse(it, input.end(), qi::int_, n); if (r && it == input.end()) std::cout << n << std::endl; return 0; }
Debug
Known issues
gotchaCompilation times can be very long due to heavy template usage
fix
Use precompiled headers or consider Spirit.X3 for newer compilers
affects: all
Upgrade
Version history
1.90.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

boost-spirit — pip install boost-spirit · libregistry