...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
NaryLexer is a composite lexer component that has
one or more subjects. The NaryLexer allows its subjects to be treated
in the same way as a single instance of a Lexer
following the Composite
Design Pattern.
Notation
l
A NaryLexer.
L
A NaryLexer type.
In addition to the requirements defined in Lexer
, for any NaryLexer 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 NaryLexer, L
,
the following invariant always holds:
traits::is_lexer<E>::type
evaluates to mpl::true_
The following lexer components conform to this model:
FIXME Add more links to models of NaryLexer concept