You have to design, implement and test a program in Delphi Pascal: the program should input two strings depicting messages in Morse code and report the minimum edit-distance between the two strings.
Morse code uses dots and dashes to represent characters (you do not need to know anything about Morse code other than that), so that strings depicting Morse code contain only dots, dashes and space characters
-.. --- -. --- - .-. . .- -.. - .... .. ...
Your program is not required to understand the Morse code but should simply treat each input string as a sequence of dots, dash and space characters. If the input strings contain characters other than ` ’, `.’ and ‘-’, then the program should output a suitable error message instead.