Report "Unexpected end of input" at EOI

Instead of "Invalid input 'EOI'"
Merge pull request #61 from cleishm/report_eoi

Report "Unexpected end of input" at EOI