Boost logo

Boost Users :

From: Hartmut Kaiser (hartmutkaiser_at_[hidden])
Date: 2004-07-12 11:37:32

Hermann Oliveira Rodrigues wrote:

> How can I inform an error from a semantic action? Consider
> the following code:
> rule = IDENTIFIER[ callback_a( m_varBinder, &VarBinder::bind ) ];
> callback_a is an actor allowing member calls in semantic actions.
> VarBinder::bind receives an identifier and try to locate it
> in an external symbol table. If bind fails, I like to inform
> a parser error back to Spirit.
> How can I do that? Pointers to the relevant parts in the
> documentation are welcome.

Have you had a look at the error handling parsers (see here:

Regards Hartmut

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at