4.6.0
Freundlich's C++ toolkit
|
Parses a list of elements, delimited by a separator, e.g., a_1,...,a_n.
Inner is tried first. If this suceeds, this provides the first element r_1 of the result. Then, Separator is tried, followed by Inner. This is done as long as possible, giving the remaining elements r_2, ..., r_n of the result, which are again taken from Inner.
Equivalent to:
Sep | A parser with result type unit. |
Public Types | |
using | result_type = std::vector<fcppt::parse::result_of<Inner>> |
Public Member Functions | |
separator (Inner &&, Sep &&) | |
template<typename Ch , typename Skipper > | |
fcppt::parse::result< Ch, result_type > | parse (fcppt::reference< fcppt::parse::basic_stream< Ch > >, Skipper const &) const |
using fcppt::parse::separator< Inner, Ch >::result_type = std::vector<fcppt::parse::result_of<Inner>> |
fcppt::parse::separator< Inner, Ch >::separator | ( | Inner && | , |
Sep && | ) |
|
nodiscard |