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

Detailed Description

template<typename Ch, typename Parser>
class fcppt::parse::named< Ch, Parser >

Gives a parser a name, improving error messages.

Note that this parser is not polymorphic over multiple character types, since the character type is chosen by the string used to name the parser.

Inheritance diagram for fcppt::parse::named< Ch, Parser >:
fcppt::parse::tag

Public Types

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

Public Member Functions

 named (Parser &&, std::basic_string< Ch > &&)
 
template<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 Ch , typename Parser >
using fcppt::parse::named< Ch, Parser >::result_type = fcppt::parse::result_of<Parser>

Constructor & Destructor Documentation

◆ named()

template<typename Ch , typename Parser >
fcppt::parse::named< Ch, Parser >::named ( Parser && ,
std::basic_string< Ch > &&  )

Member Function Documentation

◆ parse()

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