A simple scanner (lexical analyzers)