As the example above shows, considering both the pragmatic and semantic meaning of your sentence is important when communicating with other people. Although semantics is concerned only with the exact, literal meaning of the words and their interrelations, pragmatic usage focuses on the inferred meaning that the speakers and listeners perceive.
The following examples demonstrate the difference between the two:
She hasn’t taken a shower.
He was so tired he could sleep for days.
In both of these examples, the context and pragmatic meaning really define the sentence.