Added check for the existence of a precompiled grammar. If it does not exist, it will be created.