...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
BinaryParser is a composite parser that has a two
subjects, left
and right
. The BinaryParser 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 BinaryParser.
P
A BinaryParser type.
In addition to the requirements defined in Parser
, for any BinaryParser
the following must be met:
Expression |
Description |
---|---|
|
The left parser type. |
|
The right parser type. |
|
Metafunction that evaluates to |
For any BinaryParser, P
,
the following invariants always hold:
traits::is_parser<P::left_type>::type
evaluates to mpl::true_
traits::is_parser<P::right_type>::type
evaluates to mpl::true_