made the grammar creation lazy