Yoooo! this is sick! But I can’t tell if it’ll have the functionality to input the roblox language and turn it into python code. Will it?
Sadly not, I may consider adding that one day but I would have to make a full new compiler for it to do the reverse. Maybe one day.
So far it can only convert
- Python
- Lunar (like MoonScript)
- C
- C++
into:
- Luau (Roblox language)
It has no backwards compatibility.
aw, but its still a really good tool for those that find other languages easier. I understand that adding backwards compatibility might be harder than it seems.
It is possible, I might try it today. But it won’t fully support Lua → Python because of metatables and stuff like that. It will be a test implementation.
You should make a project template for games
I don’t think it is necessary, roblox-pyc is very adaptive and you can just use any Rojo or Argon or anything template then in the terminal run
roblox-<lang> c
(replace with py, C, cpp or lunar)
And it would convert the Lua template to the targeted language, it wont compile the code to the language but it will comment the old one as a refrence.
I am working on a package manager which will have way more features and libraries accessible, maybe I could integrate templates there.
Poll!
Okay so I was working on C and C++ support, there are 2 ways I can do it
-
Just like python by using a AST parser then rewrite the code in Luau (Will take longer to make and may lack some features, mostly memory management ones. But will be production ready)
-
Compile the code and use a WASM → Luau compiler (less performance, better just as a showcase, full C and C++ support, will be released sooner)
- 1
- 2
- Other, reply.
0 voters
Full release soon!
I currently am patching bugs and stuff, but after alot of testing the Python and Lunar (moonscript for roblox) compilers work very very well. It should be released later this week.
I’m having trouble setting this up.
you got a discord server? or any other ways to contact you?
I added a server link to the topic post. I will improve documentation once I make a full production release this week.
.
My school started to use Python. So I will be using this to learn Python for real