Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
BinaryParser
Description

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.

Refinement of

Parser

Notation

p

A BinaryParser.

P

A BinaryParser type.

Valid Expressions

In addition to the requirements defined in Parser, for any BinaryParser the following must be met:

Expression

Semantics

Return type

p.left

Left parser.

Parser

p.right

Right parser.

Parser

Type Expressions

Expression

Description

P::left_type

The left parser type.

P::right_type

The right parser type.

traits::is_binary_parser<P>::type

Metafunction that evaluates to mpl::true_ if a certain type, P is a BinaryParser, mpl::false_ otherwise (See MPL Boolean Constant).

Invariants

For any BinaryParser, P, the following invariants always hold:

Models

PrevUpHomeNext