MCPcopy Create free account
hub / github.com/boostorg/parser / github_issue_268

Function github_issue_268

test/github_issues.cpp:385–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383#endif
384
385void github_issue_268()
386{
387#if BOOST_PARSER_USE_CONCEPTS
388 namespace bp = boost::parser;
389 using namespace github_issue_268_;
390 std::string inputstring = "index_1 ( \"1\" ) ; variable_1 : bier;";
391
392 auto const def_result = bp::parse(
393 inputstring, lu_table_template_1_rule_def, bp::blank, bp::trace::off);
394 std::cout << "seq_parser generates this type:\n"
395 << typeid(def_result.value()).name() << std::endl;
396 BOOST_TEST(def_result);
397
398 auto const permut_def_result = bp::parse(
399 inputstring,
400 lu_table_template_1_permut_rule_def,
401 bp::blank,
402 bp::trace::off);
403 std::cout << "permut_parser generates this type:\n"
404 << typeid(permut_def_result.value()).name() << std::endl;
405 BOOST_TEST(permut_def_result);
406
407 auto const result = bp::parse(
408 inputstring, lu_table_template_1_rule, bp::blank, bp::trace::off);
409 std::cout << "seq_parser in rule generates this type:\n"
410 << typeid(result.value()).name() << std::endl;
411 BOOST_TEST(result);
412
413 auto const permut_result = bp::parse(
414 inputstring,
415 lu_table_template_1_permut_rule,
416 bp::blank,
417 bp::trace::off);
418 std::cout << "permut_parser generates this type:\n"
419 << typeid(permut_result.value()).name() << std::endl;
420 BOOST_TEST(permut_result);
421#endif
422}
423
424void github_issue_279()
425{

Callers 1

mainFunction · 0.85

Calls 2

parseFunction · 0.50
valueMethod · 0.45

Tested by

no test coverage detected