what is semantics?
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.
Join our real-time social learning platform and learn together with your friends!