Use lex to generate a scanner.