Boost logo

Boost :

From: Joel de Guzman (joel_at_[hidden])
Date: 2003-12-02 18:54:39

fred_at_[hidden] wrote:

> In the Spirit library, it is possible to assign a separate parser_id to
> a rule as one of the template parameters for the rule. This rule can
> then be extracted from, for example, AST trees to determine which rule
> created a match. In theory, this is great, since it allows some
> decoupling between the rule definitions and the AST tree interpretation.
> However, if you create two rules A and B with different parser IDs (say
> 1 and 2), and then you call A = B, then both A and B will have an ID of 2.
> I assume this is a bug. Is it a known bug? If so, what is the fix?

It looks like a bug. And no, it is not a known issue, AFAIK. Could you
please post a minimal test case that exhibits the problem? Also, could
you please post it to:

Spirit-general mailing list


Joel de Guzman

Boost list run by bdawes at, gregod at, cpdaniel at, john at