Are semantics and syntax the same?

前端 未结 9 906
旧时难觅i
旧时难觅i 2021-01-30 01:55

What is the difference in meaning between \'semantics\' and \'syntax\'? What are they?

Also, what\'s the difference between things like \"semantic website vs. normal we

9条回答
  •  自闭症患者
    2021-01-30 02:32

    "An ant ate an aunt." has a correct syntax, but will not make sense semantically. A syntax is a set of rules that can be combined to produce infinite number of gramatically valid sentences, but few, very few of which has a semantics.

提交回复
热议问题