Hi,

I have updated this mechanism a bit.

1)
Previously it was possible to set the super grammar for each grammar file.
Now it is also possible to set the import grammar (in case you have lexer + parser + tree parser setups).

2)
I have changed the compilation order.
I first build up a graph from the supper grammar and import vocabulary settings.
Than I traverse them automatically in an ordered fashion, so that required grammars are compiled before the one requiring them.

This mechanism might solve your problem too.
In my case I can compile a graph of 20+ grammar files automatically, without problems.