Morse Code Parser
The morse code converter works off the universal codes for which the table of associations follow at the end of this page.

The reason I have writen a morse code parser is simply out of curiosity. I intend on some day having a comprehensive library of everyday text conversion functions of which this parser will be part of.

My implementation is written in java and based solely on the associations described below. I have not yet implemented the 'previous word deletion' functionality, and as there is only one bracket code then all brackets are assumed to be a left bracket. Which ironically means that :-) converts to :-( Feel free to try out my implementation and report any discrepencies or errors to me. Also contact me if you would like to get a copy of the relevant code on the condition that I am any informed of improvements and/or bugfixes.
Enter a value to convert to morse code
Enter a code to convert back to normal.
Return
   If the length of time(duration) of a dot is one unit,
   Then the duration of a dash is three units.
   The duration between dots/dashed of a letter is one unit.
   The duration between letters is three units.
   The duration between words is seven units.
   To indicate the receiver is to delete the previous word completely use eight dots (........)
   
     A  .-         N  -.      
     B  -...       O  ---          
     C  -.-.       P  .--.           
     D  -..        Q  --.-             
     E  .          R  .-.         
     F  ..-.       S  ...       
     G  --.        T  -         
     H  ....       U  ..-      
     I  ..         V  ...- 
     J  .---       W  .--
     K  -.-        X  -..-
     L  .-..       Y  -.--
     M  --         Z  --..
   
     0  -----      .   .-.-.-   (period)
     1  .----      ,   --..--   (comma)
     2  ..---      :   ---...   (colon)
     3  ...--      ?   ..--..   (question)
     4  ....-      '   .----.   (apostrophe)
     5  .....      -   -....-   (hyphen)
     6  -....      /   -..-.    (slash)
     7  --...      ()  -.--.-.  (brackets)
     8  ---..      "   .-..-.   (quote)
     9  ----.      del ........ (delete word)