Using lex to build a lexical analyzer