XML DTD for Python source?
rodisi01 at my-deja.com
rodisi01 at my-deja.com
Thu Mar 2 19:02:51 EST 2000
In article <nvwv4.28848$Jz3.173949 at nnrp1.uunet.ca>,
"Greg Wilson" <gvwilson at nevex.com> wrote:
> > > Greg Wilson <gvwilson at nevex.com> wrote:
> > > Has anyone defined an XML DTD for storing Python source code? If
> > > so, I'd be grateful for a copy or pointer. If not, I'd like to
hear
> > > from anyone who'd be interested...
>
> > "Neel Krishnaswami" <neelk at brick.cswv.com> wrote
> > Can I ask what the purpose of this utility would be?
>
> Most of the data I deal with these days is either in XML, or headed
that
> way.
> The two big exceptions are legacy configuration files (like .ini's,
.rc's,
> and makefiles),
> and program source. I'm interested in exploring what would happen if I
could
> do with
> programs what I do with hypertext:
>
> - apply a DTD to switch between Scheme-style parenthesizing,
Python-style
> indentation, or C-style bracing
>
> - embed arbitrary information (images, optimization hints for the
compiler,
> etc.) in
> a way that third-party browsers and processors can handle
> (specially-formatted
> comments are *not* the answer)
>
...[snip]...
Something about this makes me think you want to look at "literate
programming" links. Here's one I found in my recent first foray into
this realm:
http://www.cs.cmu.edu/~vaschelp/Programming/Literate/literate.html
also see:
newsgroup: comp.programming.literate
Further exploration in this realm led me to a python literate
programming utility called "interscript":
http://www.vex.net/parnassus/apyllo.py?i=33328973
(The home page for this program has disappeared, apparently due to lack
of funds on the part of its author :( )
Though I can't find it now, I remember some part of a readme/doc/posting
saying something specifically about being able to mix in all sorts of
things: code, pictures (e.g., flow charts), comments, links, etc. and
then be able to separate them as needed.
It is huge and I haven't had the time to do the necessary tweaks to get
it to run on win95 (I think it comes set up to work on Unix (varieties?)
and winNT), but I look forward to using it *some*day. ;)
Ah, here is a readme:
http://www.deja.com/[ST_rn=if]/getdoc.xp?AN=550046670
This is a search for the word "interscript" in dejanews:
http://www.deja.com/[ST_rn=if]/dnquery.xp?ST=QS&DBS=2&groups=&QRY=inters
cript&svcclass=dnserver
See comments on how it is/can be used.
Good luck.
Rodisi
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list