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

Syntax versus Semantics (was: "vocabulary constraints" and otherconstra

  • From: "Costello, Roger L." <costello@m...>
  • To: "'xml-dev@l...'" <xml-dev@l...>
  • Date: Sun, 1 Mar 2009 08:03:21 -0500

Syntax versus Semantics (was:  "vocabulary constraints" and otherconstra

Michael Sperberg-McQueen wrote: 

> if we know how to specify it formally --
> especially if we can specify it in a way 
> that doesn't require a Turing machine -- and 
> check it automatically and conveniently, we tend to
> call it (whatever it is) syntax.  If we don't know 
> how, then it's semantics.

Neat!

And Michael also wrote:

> One of the great themes of computer science 
> over the last sixty years has been the 
> long-running campaign to move more and more 
> things out of the "must be checked by 
> eyeball" / semantics area, and into the "can
> readily be checked by machine" / syntax area.


QUESTIONS

1. If something is in the realm of "semantics" does that mean it can only be processed by humans (eyeballs)? It cannot be processed by machines?


2. If something is in the realm of "syntax" does that mean it can be declaratively expressed, whereas something in the realm of "semantics" can only be procedurally expressed?


3. Suppose that something can be expressed declaratively but it takes pages and pages to express it. Is it still syntax?


I'd like to take a stab at defining syntax and semantics, incorporating 

   - the distinction of declarative versus procedural and 
   - the distinction of simple to express versus complex:


WHAT IS SYNTAX?

Something is syntax if it can be simply specified in a declarative manner and it can be checked automatically and conveniently.


WHAT IS SEMANTICS?

Something is semantics if it cannot be simply specified in a declarative manner or it requires procedural code to express it.


Do you agree with these definitions?

/Roger


[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.