Wrote grammar transformations