Semantic analyser of COOL programming language