MCPcopy Create free account
hub / github.com/boostorg/spirit / parse_identifiers

Function parse_identifiers

classic/example/fundamental/stuff_vector2.cpp:53–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51function<push_back_impl> const push_back = push_back_impl();
52
53bool
54parse_identifiers(char const* str, vector<std::string>& v)
55{
56 return parse(str,
57
58 // Begin grammar
59 (
60 (+alpha_p)
61 [
62 push_back(var(v), construct_<std::string>(arg1, arg2))
63 ]
64 >>
65 *(',' >>
66 (+alpha_p)
67 [
68 push_back(var(v), construct_<std::string>(arg1, arg2))
69 ]
70 )
71 )
72 ,
73 // End grammar
74
75 space_p).full;
76}
77
78////////////////////////////////////////////////////////////////////////////
79//

Callers 1

mainFunction · 0.85

Calls 3

parseFunction · 0.50
push_backFunction · 0.50
varFunction · 0.50

Tested by

no test coverage detected