XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
=?UTF-8?Q?Re=3A_=5Bxml=2Ddev=5D_The_semantics_of_an_XML_document_is_?==?UTF-8?Q?=E2=80=A6?=



On Mon, Jan 10, 2022 at 11:00 AM Norman Gray <norman.gray@glasgow.ac.uk> wrote:

Greetings.

In a computing context, I've always taken 'semantics' to refer to everything 'above' the level of 'syntax', in a cheerfully hand-waving way.

Thus

  2 + 2

is a legal string of arithmetic tokens, in the syntax we learned in primary school, and

  2 2 +

isn't.  Choosing to interpret one or both of these token-streams as an arithmetic expression is a semantic act.  If we've heard of reverse-polish notation, then we may additionally recognise the second stream as a legal stream in that syntax, in which case we will ascribe to the second stream the same semantics -- the same meaning/implication/truth-value/blah -- as the first.

...and then you encounter one of them horrible i++ vs ++i languages. 


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS