...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
NaryParser is a composite parser that has one or
more subjects. The NaryParser allows its subjects to be treated in the
same way as a single instance of a Parser
following the Composite
Design Pattern.
Notation
p
A NaryParser.
P
A NaryParser type.
In addition to the requirements defined in Parser
, for any NaryParser the
following must be met:
Expression |
Semantics |
Return type |
---|---|---|
|
The tuple of elements. |
A Boost.Fusion
Sequence of |
Expression |
Description |
---|---|
|
Elements tuple type. |
|
Metafunction that evaluates to |
For each element, E
,
in any NaryParser, P
,
the following invariant always holds:
traits::is_parser<E>::type
evaluates to mpl::true_