![]() |
Home | Libraries | People | FAQ | More |
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
pA BinaryParser.
PA 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_