break lexer into lexFile and lexInputLine for compatability