Xlate parsing utility?

Clovertech Forums Read Only Archives Cloverleaf Tcl Library Xlate parsing utility?

  • Creator
    Topic
  • #55255
    Paul Bishop
    Participant

      is there a utility in cloverleaf similar to the nfLoad for NetConfigs?  I’m wanting to read in/parse out a .xlt file.

      Thanks!

      Paul Bishop
      Carle Foundation Hospital
      Urbana, IL

    Viewing 3 reply threads
    • Author
      Replies
      • #84721
        Charlie Bursell
        Participant

          You can take a look at the Xio routines in $HCIROOT/tcl/lib/cloverleaf/configIO.tlib

          However, a caveat.  All of the Tcl routines in this library were meant to support Cloverleaf internals and, as such, are subject to change without notice.

          What specifically are you trying to do?  I have written several routine to parse Xlate, not always with Xio

        • #84722
          Paul Bishop
          Participant

            I want to take the Xlate and put it into a spreadsheet format.  I’m picturing columns as the operation, source, pre-proc, action (i.e. table name, math function, etc), post-proc, and destination.  I could then use this spreadsheet or share it to somebody who isn’t cloverleaf savvy.

            Paul Bishop
            Carle Foundation Hospital
            Urbana, IL

          • #84723
            Charlie Bursell
            Participant

              I did that in the original Cloverleaf Documentation I wrote except it was in HTML format.  I don’t know if I can find the old code but as I recollect I was able to do it without Xio, mostly keyed lists and regexp.

              The problem you have here is keeping up with changes.  Most new releases will have  a new key or something you have to deal with

            • #84724
              David Barr
              Participant

                We do something similar with NetConfig. Instead of HTML we use Wiki markup and rely on our Wiki to do the final HTML conversion.

            Viewing 3 reply threads
            • The forum ‘Tcl Library’ is closed to new topics and replies.