Code - Semantic (Meaning|Behaviour)

1 - About

Semantic is also known as intrinsic meaning.

In a programmatic language:

  • Syntax is like having the words in a sentence in the right order.
  • whereas Semantics is like having the sentences in a paragraph in the right order.

Declarative language declares the semantic.

See also: Compiler - Semantics Analysis

3 - Example

For example, in HTML, an img element represents an image.

<img src=myPicture.jpg/>

4 - Documentation / Reference

code/property/semantic.txt ยท Last modified: 2017/09/17 18:26 by gerardnico