a tiny imporvement in EOF test in parser.go