Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Phoenix

__boostphoenix_ makes it easier to attach semantic actions. You just inline your lambda expressions:

p[phoenix-lambda-expression]

Spirit.Qi provides some __boostphoenix_ placeholders to important information from the Attr and Context that are otherwise fiddly to extract.

Spirit.Qi specific Phoenix placeholders

_1, _2... , _N

Nth attribute of p

_val

The enclosing rule's synthesized attribute.

_r1, _r2... , _rN

The enclosing rule's Nth inherited attribute.

_a, _b... , _j

The enclosing rule's local variables (_a refers to the first).

_val

The enclosing rule's synthesized attribute.

_pass

Assign false to _pass to force a parser failure.


PrevUpHomeNext