Hello *GV*,
> Would this work? What do I have to look out for?
Yes, it would work. You may have to look out for the token list, unless
the base class and derived class have the same lexer tokens...
We've used this approach in our tooling for quite some time now.
Best,
Dennis Hendriks