Lexical analyzer for a little subset of the console language.