Thanks for the idea. I just gave it a try and the memory came down by about 50%. Additionally the compilation became much faster.

But that might still not be enough :-( I will try to simplify my grammar rules for now.

Regards
- Puneet