Fixed handling of EOF in Lex().