"Semantics" is about the meaning you're trying to express.
"Syntax" is the way you've chosen to express that meaning in this particular case.
e.g.:
def blah "a" end
function blah() { return 'a'; }
"Semantics" is about the meaning you're trying to express.
"Syntax" is the way you've chosen to express that meaning in this particular case.
e.g.:
versus Semantically identical, but unrelated syntax.