Freundlich's C++ toolkit
No Matches
Public Member Functions
fcppt::parse::skipper::repetition< Parser > Class Template Reference

Detailed Description

template<typename Parser>
class fcppt::parse::skipper::repetition< Parser >

Skips characters repeatedly.

Let p be a skipper and rep = repetition{p}. A single skipper step consists of the following actions: First, the current position pos is saved. Then, the skipper p is run. These steps continue as long as p does not return an error. After this, rep backtracks to pos. If the error returned by p is fatal, then this error is returned.

Inheritance diagram for fcppt::parse::skipper::repetition< Parser >:

Public Member Functions

 repetition (Parser &&)
template<typename Ch >
fcppt::parse::skipper::result< Ch > skip (fcppt::reference< fcppt::parse::basic_stream< Ch > >) const

Constructor & Destructor Documentation

◆ repetition()

template<typename Parser >
fcppt::parse::skipper::repetition< Parser >::repetition ( Parser &&  )

Member Function Documentation

◆ skip()

template<typename Parser >
template<typename Ch >
fcppt::parse::skipper::result< Ch > fcppt::parse::skipper::repetition< Parser >::skip ( fcppt::reference< fcppt::parse::basic_stream< Ch > >  ) const