Re: [xml] s-exprs

Date view Thread view Subject view Author view

From: David Doolin (doolin@cs.utk.edu)
Date: Wed Jan 26 2000 - 10:40:16 EST


In message <1263244847-78018857@jessenlenz.com>, pj@walter-graphtek.com writes:
>
>Hi Daniel, hi all,
>
>This may score for the strangest feature request you've got, but I
>would like to use libxml for parsing and (probably transcoding to
>XML) configuration data in s-expr syntax.
>
>Perhaps anyone has an idea how to plug an existing s-expr parser
>into libxml?
>
>The desired functionality, would be reading something like
>
>(foo (bar x y z) hu fu 'gnu)
>
>application transparently as it were encoded as
>
><foo><bar><x/><y/><z/></bar><hu/><fu/>gnu</foo>

I need to do this (later) for embedding an external scripting
language. My thought was to something like

<scriptlang> x = 3; for(;;) {blah; blah; blah;} </scriptlang>

Then the xml parser would just hand this off to my parser, which
might return an ast or something. Seems cleaner than inventing
bunches of new tags, and done properly, could be independent of
scripting language.

--dave d
>
>Regards,
>Peter
>
>----
>Message from the list xml@xmlsoft.org
>Archived at : http://xmlsoft.org/messages/
>to unsubscribe: echo "unsubscribe xml" | mail majordomo@xmlsoft.org

----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:59 EDT