Make separate PreparedGrammar subclass of Grammar for internal use