[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: The meeting must start before it ends ...... Wow! Thathas

  • From: Tei <oscar.vives@gmail.com>
  • Date: Thu, 26 Feb 2015 14:13:33 +0100

Re:  The meeting must start before it ends ...... Wow! Thathas
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]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.