MIT 6.00 Intro Computer Science (OCW)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
semantics actually means the meaning. there are two types as told in lecture:- 1. static semantics - which program are meaningful 2. full semantics - what does the program means or what will happen if i run it?
I like the essay analogy: syntax and structure are the spelling an grammar of your essay, and semantics are the actual argument or point or theme. Thus, even if you've written an essay that is supposed to be about, say, the life and times of Pericles, and it's perfect in every grammatical respect (the syntax is good,) it can still fail if the essay doesn't mean what it's supposed to mean. You could get the dates wrong, or place Pericles in 16th-century Europe, or spend 3000 words convincing us that he invented a better vacuum cleaner. The semantics of your essay are bad. Such as essay may be interesting, but it won't do what it's supposed to do. When you run it in a realtime situation (like an academic conference on Greek history) you will either get runtime errors or some surprising, and largely nongratifying, results.
I think the real question is.... "what be semantics"?
semantic error An error in a program that makes it do something other than what the programmer intended. semantics The meaning of a program. a,b,c,d.. are letters that belong to our language but "atru", no is a correct word becuse has no mean (error semantic), however has correct syntax.