Hello Martin, the way you proposed is the one I've chosen right now. But isn't there a better one, especially for the definition of the rules? Perhaps a semantic action or something like that ....?