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

Detailed Description

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

Disables the skipper.

For a parser p, lexeme{p} always calls p.parse with the skipper fcppt::parse::skipper::epsilon, effectively disabling skipping.

Inheritance diagram for fcppt::parse::lexeme< Parser >:
fcppt::parse::tag

Public Types

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

Public Member Functions

 lexeme (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::lexeme< Parser >::result_type = fcppt::parse::result_of<Parser>

Constructor & Destructor Documentation

◆ lexeme()

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

Member Function Documentation

◆ parse()

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