Thinkscript to AFL

Is there a way to take a thinkscript formula and convert it to an AFL?

As far as I know, there is no tool to perform the conversion automatically. I have always done it manually. The good news is that AFL is more full-featured and flexible than thinkScript, so pretty much any TS code can be converted.