Add filename constructor for Grammar.