lisp to xml conversion tools?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike Jackson

    #1

    lisp to xml conversion tools?

    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

    #2
    Re: lisp to xml conversion tools?

    On Mon, 06 Oct 2003 07:43:49 GMT, Mike Jackson
    <mjj@isorauta.n tc.nokia.com> wrote:
    [color=blue]
    > 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 ?[/color]

    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.

    --
    Die Gotterspammerun g - Junkmail of the Gods

    Comment

    • Oleg Dulin

      #3
      Re: lisp to xml conversion tools?

      Why write one in Perl when this is trivial in Lisp itself ?

      Oleg

      Mike Jackson wrote:
      [color=blue]
      > 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
      >[/color]

      Comment

      • Andy Dingley

        #4
        Re: lisp to xml conversion tools?

        On Mon, 06 Oct 2003 14:51:23 GMT, Oleg Dulin <news@com.olegd ulin>
        wrote:
        [color=blue]
        >Why write one in Perl when this is trivial in Lisp itself ?[/color]

        If one knew enough lisp to do this, would you want to convert from it?

        --
        Smert' spamionam

        Comment

        • Oleg Dulin

          #5
          Re: lisp to xml conversion tools?

          >>Why write one in Perl when this is trivial in Lisp itself ?[color=blue]
          >
          >
          > If one knew enough lisp to do this, would you want to convert from it?[/color]

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

          Oleg

          Comment

          Working...