Parser handles EOF properly
Handle errors properly