...one of the most highly
regarded and expertly designed C++ library projects in the
world. — Herb Sutter and Andrei
Boost.Phoenix makes it easier to attach semantic actions. You just inline your lambda expressions:
Spirit.Lex provides some Boost.Phoenix
placeholders to access important information from the
that are otherwise difficult to extract.
Spirit.Lex specific Phoenix placeholders
Iterators pointing to the begin and the end of the matched input sequence.
to force the current match to fail.
The token id of the matched token.
The token value of the matched token.
The lexer state the token has been matched in.
Iterator referring to the current end of the input sequence.
All of the placeholders in the list above (except
For more information see Lexer Semantic Actions.