Added foreach syntax to grammar