4.6.0
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
fcppt::parse::repetition_plus< Parser > Class Template Reference

Detailed Description

template<typename Parser>
class fcppt::parse::repetition_plus< Parser >

Tries a parser repeatedly, producing a vector of results. Must produce at least one element.

This is identical to fcppt::parse::repetition, but it returns an error in case no results are produced.

See also
fcppt::parse::repetition
Inheritance diagram for fcppt::parse::repetition_plus< Parser >:
fcppt::parse::tag

Public Types

using result_type = fcppt::parse::repetition_result<fcppt::parse::result_of<Parser>>
 

Public Member Functions

 repetition_plus (Parser &&)
 
template<typename Ch , typename Skipper >
fcppt::parse::result< Ch, result_typeparse (fcppt::reference< fcppt::parse::basic_stream< Ch > >, Skipper const &) const
 

Member Typedef Documentation

◆ result_type

template<typename Parser >
using fcppt::parse::repetition_plus< Parser >::result_type = fcppt::parse::repetition_result<fcppt::parse::result_of<Parser>>

Constructor & Destructor Documentation

◆ repetition_plus()

template<typename Parser >
fcppt::parse::repetition_plus< Parser >::repetition_plus ( Parser && )
explicit

Member Function Documentation

◆ parse()

template<typename Parser >
template<typename Ch , typename Skipper >
fcppt::parse::result< Ch, result_type > fcppt::parse::repetition_plus< Parser >::parse ( fcppt::reference< fcppt::parse::basic_stream< Ch > > ,
Skipper const &  ) const
nodiscard