lisp to xml conversion tools?

Mike Jackson

Usenet Archive
Joined
Oct 6, 2003
Messages
3
Reaction score
0
Hi,
I would need to convert a lisp type file to xml. Are there any tools available for this purpose, before I start writing my own in perl ?

The original file format looks like this (very simplified example):

(foo "bar"
(foo1 "something"
(something "bar")
(bar "else")
)
(foo2 "something else")
(foo3 "yet another something")
)

Would you be so kind as to also reply to my email address?

Thanks!
Mike
 

Andy Dingley

Usenet Archive
Joined
Feb 23, 2000
Messages
3,303
Reaction score
0
I would need to convert a lisp type file to xml. Are there any tools available for this purpose, before I start writing my own in perl ?

I've seen this done in DSSSL. If you're an SGML expert, you can represent lisp syntax as SGML (SGML doesn't always have to use angle brackets). You can then use DSSSL (which bears a similar relationship to SGML as XSLT does to XML) to transform it.

However SGML / DSSSL experts are thin on the ground (there are only three, and one of them keeps babbling about the Schleswig Holstein Question).

So I'd go straight to doing it with Perl. You can either build a real parser (lex & yacc territory) or you can do it _very_ quickly by assuming that all input is syntactically valid lisp and doing simple token replacements.
 

Oleg Dulin

Usenet Archive
Joined
Oct 6, 2003
Messages
4
Reaction score
0
Why write one in Perl when this is trivial in Lisp itself ?
If one knew enough lisp to do this, would you want to convert from it?

Only if someone paid me handsomely to make my LISP readable to them.

Oleg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,042
Messages
3,104,224
Members
248,132
Latest member
henrywalsh

Latest Threads

Top