Operators are used as a means for object composition and embedding. Simple parsers may be composed to form composites through operator overloading, crafted to approximate the syntax of Parsing Expression Grammar (PEG). An expression such as:
a | b
yields a new parser type which is a composite of its operands,
This module includes different parsers which get instantiated if one of
the overloaded operators is used with more primitive parser constructs.
It includes Alternative (
-), Expect (
>), Kleene star (unary
*), Lists (
-), Permutation (
^), Plus (unary
>>), and Sequential-Or
// forwards to <boost/spirit/home/qi/operator.hpp> #include <boost/spirit/include/qi_operator.hpp>
Also, see Include Structure.