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

RE: Your XML document is a programming language

  • From: David Lee <dlee@calldei.com>
  • To: Michael Kay <mike@saxonica.com>, "Costello, Roger L." <costello@m...>
  • Date: Mon, 9 Sep 2013 12:33:53 +0000

RE:  Your XML document is a programming language
To follow up on Mike's excellent commentary,
I direct the curious readers to one of the best examples (IMHO) 
An entirely transparent programming languages, with the marvelous ability to 
have program listings without a single drop of ink wasted (or used)

http://en.wikipedia.org/wiki/Whitespace_(programming_language)

No angle brackets were harmed for this language.


----------------------------------------
David A. Lee
dlee@calldei.com
http://www.xmlsh.org

-----Original Message-----
From: Michael Kay [mailto:mike@saxonica.com] 
Sent: Monday, September 09, 2013 8:18 AM
To: Costello, Roger L.
Cc: xml-dev@lists.xml.org
Subject: Re:  Your XML document is a programming language


On 9 Sep 2013, at 12:59, Costello, Roger L. wrote:

> Hi Folks,
> 
> This is a programming language:
> 
> <Book>
>    <Title>____</Title>
>    <Author>____</Author>
> </Book>
> 
> Don't let the angle brackets and element names deceive you, it is a programming language.
> 
> When I execute this program
> 
> <Book>
>    <Title>Six Great Ideas</Title>
>    <Author>Mortimer Adler</Author>
> </Book>
> 

Hang on, first you tell us that this snippet is a programming language, then you tell us it's a program.

Well, it's easy to see how it is a program. "Beam me up, Scotty" is a program if someone designs a programming language that includes this as one of its permitted constructions, and if the language defines semantics for this sentence. For any string of characters, you can design a programming language in which that string of characters is a program. So you can certainly design a programming language in which your <Book>..</Book> sample is a program. It only becomes an interesting programming language if it is suitable for writing a sufficiently general class of programs, and that's something you have yet to demonstrate.

Michael Kay
Saxonica


_______________________________________________________________________

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



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