A ship in port is safe, but that is not what ships are built for.
The interplay between syntax and semantics is central to the study of formal languages.