parsi/fn/anyof.hpp
-
namespace parsi
Functions
-
namespace fn
-
template<is_parser... Fs>
struct AnyOf - #include <anyof.hpp>
A parser combinator where it tries the given
parsers
on the given stream and at least one of them must succeed which its result will be returned, otherwise the result of the last one to fail will be returned.Public Functions
Private Functions
- template<std::size_t I> inline requires (I< sizeof...(Fs)) const expr auto parse_rec(Stream stream) const noexcept -> Result
-
template<is_parser... Fs>
-
namespace fn