Ask your own question, for FREE!
Computer Science 13 Online
OpenStudy (ohanzee):

relationship and difference between Semantics and syntax with real life and programming example in terms of compiler Construction

OpenStudy (ohanzee):

im have problem with real life examples

OpenStudy (ohanzee):

i dont what type of an example should i quote here

OpenStudy (rsmith6559):

I'm not great at this, but I hate to see you get nothing. Syntax is the proper construction of a "sentence". AFAIK, semantic is the meaning of the "sentence". I quote sentence because for the most part compilers are parsing code. For instance: int functionName( int argumentOne ) Has a return type. Has a name. Has the type and name for an argument in parenthesis. Is syntactically correct. In C and C derived languages, this means (semantically) that we're defining a function that takes an integer as an argument and returns an integer. Googling "semantic definition" was very simple and gave me a definition of semantic right at the top.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Arriyanalol: i need help
1 day ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
1 day ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!