4.4.0
|
|
Freundlich's C++ toolkit |
A product of two parsers.
This parser first applies its left parser and if that succeeds also applies its right parser. Use fcppt::options::apply to create a product of two or more parsers. The result type is a record that contains the elements of both Left and Right. Therefore, Left and Right must have disjoint label sets.
Public Types | |
using | result_type = fcppt::record::disjoint_product< fcppt::options::result_of< Left >, fcppt::options::result_of< Right > > |
Public Member Functions | |
product (Left &&, Right &&) | |
fcppt::options::parse_result< result_type > | parse (fcppt::options::state &&, fcppt::options::parse_context const &) const |
fcppt::options::flag_name_set | flag_names () const |
fcppt::options::option_name_set | option_names () const |
fcppt::options::usage | usage () const |
using fcppt::options::product< Left, Right >::result_type = fcppt::record:: disjoint_product<fcppt::options::result_of<Left>, fcppt::options::result_of<Right> > |
fcppt::options::product< Left, Right >::product | ( | Left && | , |
Right && | |||
) |
fcppt::options::flag_name_set fcppt::options::product< Left, Right >::flag_names | ( | ) | const |
fcppt::options::option_name_set fcppt::options::product< Left, Right >::option_names | ( | ) | const |
fcppt::options::parse_result< result_type > fcppt::options::product< Left, Right >::parse | ( | fcppt::options::state && | , |
fcppt::options::parse_context const & | |||
) | const |
fcppt::options::usage fcppt::options::product< Left, Right >::usage | ( | ) | const |