Error reporting in statement grammar