make sure to invoke the parser on EOF