OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Schema for Programming Language

[ Lists Home | Date Index | Thread Index ]

Thanks to all who responded, these are helpful ideas.  I'm pretty new at XML and learning what's "au courant" and what's not is interesting.  What about using attributes to attach syntactic information to the semantic elements? as in:

 

 

  <unary-op type="increment" syntax="++" position="(10,25)"/>

 

-Allen

 

-----------------------------------------------------------------------------

What's wrong with something like:

 

<if-then-else-statement>If <condition>(x&lt;0)</condition><block>

        <unary-op type="increment">++<arg>x</arg></unary-op>;</block>

<block>else

        <unary-op type="increment">--<arg>x</arg></unary-op>;</block></if-then-else-statement>

 

aside from mixed content not being au courant?

 

--

Kian-Tat Lim, ktl@ktlim.com, UTF-7: +Z5de+pBU-

 

 





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS