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

Re: CodeML?

  • From: Jeff Turner <jeff@s...>
  • To: robert sanford <rsanford@n...>
  • Date: Sun, 25 Feb 2001 15:37:31 +1100

robert sanford
On Sat, Feb 24, 2001 at 09:08:20PM -0600, robert sanford wrote:
> is there a specification anywhere for creating an xml based
> programming language? the idea that i have in my head is that a
> language would be specified in a schema describing a BNF like
> structure and that potentially an XSLT could translate a "program"
> (aka instance document) written in that language to an actual
> implementation language such as perl, java, c++, etc.

Pretty awful to program in, wouldn't you think? ;) Have a look at JavaML to see
how a OO language expressed as XML looks.. it's not pretty.
 
> i know that i can do this but i'd like to see if there are ant
> existing works that i can build off of.

I wrote something like this.. you could embed declarative XML statements in
regular code, eg:

<debug level="1">This is a debug statement</debug>

Then a preprocessor converted that <debug> statement to real code for the
target language. New tags can be added by writing XSLT stylesheets.

Code available on request; gory details available at
http://kenny.socialchange.net.au/~jeff/xcode/docs/

> or, we could go even farther and write an xml based byte-code that
> our xml language(s) (or any other language for that matter) can be
> compiled into. i don't _really_ want to do that but it could be a
> fun thought exercise :)

How about Java bytecode?

--Jeff

> rjsjr
> 
> ------------------------------------------------------------------
> To unsubscribe from this elist send a message with the single word
> "unsubscribe" in the body to: xml-dev-request@l...

-- 

  • References:
    • CodeML?
      • From: robert sanford <rsanford@n...>

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.