Write lua scripts in defold using python to lua transplier

Hi all , i had created a python software that can be used to transpile subset of python into lua source code , this effort is made to coding in Defold using pythonic lua syntax. I had implemented enough feature to start , and i will continue to add more feature to the transpiler ,
check project : https://github.com/MhadhbiXissam/pythonicLua

6 Likes

Interesting. Does it compile regular python code? Also I’d recommend transpiling variables as locals by default.

3 Likes

not all python , check the github repo example , and about your question to declare variable :

  • local variable example x : local = {}
    so to make variable local annotate it with local then the generated code will be : local x = {}

if you any question about feel free to ask me at any time , and in case a bug please report it in the git

2 Likes