added debugging output on lex failure