Lexical analyser construction