Lexical analyser for expressions