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

Function main

example/rule_intro.cpp:29–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27//]
28
29int main()
30{
31 std::cout << "Please enter a list of doubles, separated by commas. ";
32 std::string input;
33 std::getline(std::cin, input);
34
35 //[ rule_intro_parse_call
36 auto const result = bp::parse(input, doubles, bp::ws);
37 //]
38
39 if (result) {
40 std::cout << "You entered:\n";
41 for (double x : *result) {
42 std::cout << x << "\n";
43 }
44 } else {
45 std::cout << "Parse failure.\n";
46 }
47}
48//]

Callers

nothing calls this directly

Calls 1

parseFunction · 0.70

Tested by

no test coverage detected