SDR 21 May 2006 Interested to find out if there any convertors from Pascal code to Tcl code available. I have some Pascal code that needs to be converted to Tcl and maybe I should learn Pascal code, but I'm too lazy (and not smart enough) for that. I would assume any automatic conversion of code would be riddled with problems, but if the code is converted to Tcl I can then find the bugs easier. Any suggestions? [AM] (22 may 2006) I do not know enough of Pascal to help out, but I have experience with similar translations from Fortran. My strategy would be: * Replace all the keywords by their Tcl equivalents (use [[string map]] for that) * Convert the assignments (a=b and the like) to set-statements, using [[regsub]] * Find other general edits that take very little Tcl code to implement * Edit the resulting code manually If there is no automatic conversion tool, and that is very likely the case, then the above steps at least get rid of the more tedious bits of conversion. [aa] I think Pascal is among the easiest languages to read. If it's not been made unreasonably complex by the programmer, you basically need only to know that '''begin''' and '''end''' surround blocks of code. My suggestion is to do it the "right" way: look at what the Pascal code is intended to do and write new Tcl code to do the same thing. Tcl has rather different strengths from Pascal, so a direct translation is probably not going to be the best route.