Changing how we handle EOF, to support parse() convenience method.