Add foreach statement to grammar