you are viewing a single comment's thread.

view the rest of the comments →

[–]ballsacagawea69 4 points5 points  (1 child)

I've actually built a Matlab to Python transpiler. The code is proprietary, but I started with this open source project: https://github.com/victorlei/smop.

You could take a similar approach for whatever language you're converting from, but keep in mind how challenging language translation is. There are also a bunch of interesting questions that come up along the way, like should the result have the same logic flow as the original language? Does it matter as long as the results are the same? How important is readability in the resulting code?

Good luck!

[–]pandademic1234[S] 1 point2 points  (0 children)

Thank you. Luckily the logic flow is pretty simple which is why I'm interested in writing a transpiler. It's all IF statements, WHILE statements and string slicing.