C++Boost::Boost.Metaparse














































C++Boost::Boost.Metaparse



Boost.Metaparse is an advanced library to be used in a machine learning project to extract metainformation about information sources, such as agents online that share information.

Parser, In the syntax analysis phase, a compiler verifies whether or not the tokens generated by the lexical analyzer are grouped according to the syntactic rules of the language.

position of parser


Header:

#include <boost/metaparse.hpp>

Program:
#include <boost/metaparse/string.hpp>
#include <boost/type_index.hpp>
#include <iostream>

int main()
{
  std::cout
    << boost::typeindex::type_id_with_cvr<BOOST_METAPARSE_STRING("90 + 5")>()
    << std::endl;
}

Output:

boost::metaparse::v1::string<(char)57, (char)48, (char)32, (char)43, (char)32, (char)51>



Comments