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]
Re: [xml-dev] The meeting must start before it ends ...... Wow! Thathas deep meaning, right?

I don't know what you are talking about, so I have googled it:

http://cs.lmu.edu/~ray/notes/compilerarchitecture/
http://en.wikipedia.org/wiki/Lexical_analysis
http://en.wikipedia.org/wiki/Semantic_analysis_%28compilers%29

"Semantic analysis, also context sensitive analysis, is a process in compiler construction, usually after parsing, to gather necessary semantic information from source code. It usually includes type checking, or makes sure a variable is declared before use which is impossible to detect in parsing."

heres my humble opinion:

this is what the user want to write:
LET V=10E20
this is what the angry actually wrote:
LET V=ELL0

LET V=ELL0  will pass the parsing phase because it looks like a valid sentence

the semantic analizer will get angry, because  ELL0 is not on the lexicon table, he don't understand ELL0 and can't add it to the lexicon table because to do so, must be on the left part of a LET sentence.  Poor dumb semantic analizer don't know ELL0 was the user tryiing to write a number, it look to him like a symbol for where search fails.


about this:

<Meeting>
    <start-time>2015-02-26T08:00:00</start-time>    <end-time>2015-02-26T09:00:00</end-time></Meeting>


(a) The statement that "the meeting's start time must be before the end time" is a statement about semantics.
Too high level for a poor semantic analizer. Maybe he can detect it and generate a warning.

(b) The statement that "the keywords are case insensitive" is a statement about semantics.
Too low level for a semantic analizer, this is a parser job

(c) The statement that "the meeting's start time must be before the end time" is a statement about a data relationship (a co-constraint), it has nothing to do with the semantics of the meeting.
Too high level for a poor semantic analizer. Maybe he can detect it and generate a warning.

(d) The statement that "the keywords are case insensitive" is a statement about how a lexer should tokenize the DOT language, it has nothing to do with the semantics of the keywords.
Seems correct to me

(e) We spend too much time worrying about whether something should or shouldn't be labeled "semantics".
The first time I had to work with SOAP I got the impression somebody had quadruple complicators gloves here.  I would submit the whole of SOAP to a site like theDailywtf.com and see if they post it.

(f) We should stop using the word "semantics" since nobody can agree to what it is.
No?,  almost everybody uses the word "hacker" wrong,  I think is not reason enough to continue using it properly. Hollywood be damned.



On 26 February 2015 at 13:26, Costello, Roger L. <costello@mitre.org> wrote:
Hi Folks,

Here is some data about a meeting:

<Meeting>
    <start-time>2015-02-26T08:00:00</start-time>
    <end-time>2015-02-26T09:00:00</end-time>
</Meeting>

The start time must be before the end time.  .......... Is that a statement about semantics?

The DOT reference manual says that "the keywords node, edge, digraph, subgraph, and strict are case insensitive." .......... Is that a statement about semantics?

Which of the following are true:

(a) The statement that "the meeting's start time must be before the end time" is a statement about semantics.

(b) The statement that "the keywords are case insensitive" is a statement about semantics.

(c) The statement that "the meeting's start time must be before the end time" is a statement about a data relationship (a co-constraint), it has nothing to do with the semantics of the meeting.

(d) The statement that "the keywords are case insensitive" is a statement about how a lexer should tokenize the DOT language, it has nothing to do with the semantics of the keywords.

(e) We spend too much time worrying about whether something should or shouldn't be labeled "semantics".

(f) We should stop using the word "semantics" since nobody can agree to what it is.

/Roger

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



--
--
ℱin del ℳensaje.


[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