MCPcopy Create free account
hub / github.com/BowenFu/hspp / sepByImpl

Function sepByImpl

include/parser.h:138–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136
137template <typename A, typename Repr, typename B, typename Repr1>
138constexpr auto sepByImpl(Parser<A, Repr> p, Parser<B, Repr1> sep)
139{
140 return (alt | (p <sepBy1> sep) | (Monad<Parser>::return_ | std::vector<A>{}));
141}
142
143constexpr auto sepBy = toGFunc<2> | [](auto p, auto sep)
144{

Callers 1

parser.hFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected