4.6.0
Freundlich's C++ toolkit
|
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.
Public Member Functions | |
repetition (Parser &&) | |
template<typename Ch > | |
fcppt::parse::skipper::result< Ch > | skip (fcppt::reference< fcppt::parse::basic_stream< Ch > >) const |
|
explicit |
|
nodiscard |