bug fix in parser

* replaced eat with expect