Script to convert Tcl scripts to Python?

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

    Script to convert Tcl scripts to Python?

    Hi,

    I have a 10k+ line Tcl program that I would like to auto convert over to
    Python. Do any scripts exist that can convert ~90% of the standard Tcl
    syntax over to Python? I know Python doesn't handle strings, but just for
    general syntax e.g., puts print, expr math operations

    thanks


  • Gerard Flanagan

    #2
    Re: Script to convert Tcl scripts to Python?

    On Apr 23, 9:17 am, "Achillez" <n...@na.comwro te:
    Hi,
    >
    I have a 10k+ line Tcl program that I would like to auto convert over to
    Python. Do any scripts exist that can convert ~90% of the standard Tcl
    syntax over to Python? I know Python doesn't handle strings, but just for
    general syntax e.g., puts print, expr math operations
    >
    thanks
    Never used it, but there's a jacl2jython tool (IBM):




    G.

    Comment

    • Helmut Jarausch

      #3
      Re: Script to convert Tcl scripts to Python?

      Achillez wrote:
      Hi,
      >
      I have a 10k+ line Tcl program that I would like to auto convert over to
      Python. Do any scripts exist that can convert ~90% of the standard Tcl
      syntax over to Python? I know Python doesn't handle strings, but just for
      general syntax e.g., puts print, expr math operations
      >
      I asked a similar question some time ago. The summary was - don't do it!
      Instead, a Tcl interpreter could be loaded and given the job to do.
      I think that's similar to what Tkinter does.

      --
      Helmut Jarausch

      Lehrstuhl fuer Numerische Mathematik
      RWTH - Aachen University
      D 52056 Aachen, Germany

      Comment

      Working...