added SemanticAnalyser to cmd-based compiler